mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-24 08:14:33 +00:00
Merge "Reduce 'Edit' EventLogging schema sampling rate to 6.25% (1/16th)"
This commit is contained in:
commit
03e93d626d
|
@ -193,8 +193,8 @@ class WikiEditorHooks {
|
|||
if ( !class_exists( 'EventLogging' ) ) {
|
||||
return false;
|
||||
}
|
||||
// Sample 25% (via hex digit)
|
||||
if ( $data['editingSessionId'][0] > '3' ) {
|
||||
// Sample 6.25% (via hex digit)
|
||||
if ( $data['editingSessionId'][0] > '0' ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
return;
|
||||
}
|
||||
|
||||
// Sample 25% (via hex digit)
|
||||
// Sample 6.25% (via hex digit)
|
||||
// We have to do this on the client too because the unload handler
|
||||
// can cause an editingSessionId to be generated on the client
|
||||
if ( editingSessionId.charAt( 0 ) > '3' ) {
|
||||
if ( editingSessionId.charAt( 0 ) > '0' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue