Merge "Reduce 'Edit' EventLogging schema sampling rate to 6.25% (1/16th)"

This commit is contained in:
jenkins-bot 2015-06-22 15:00:07 +00:00 committed by Gerrit Code Review
commit 03e93d626d
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}

View file

@ -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;
}