Allow us to distinguish errors for logged in users
Logged in users may be more likely to have client side errors - either through using interfaces that require authentication or through gadgets that they run. I'd like to separate the two. Bucketing like this means we can still continue to count all client side errors, but we can have additional graph lines for logged in. This way we can notice spikes in bugs limited to logged in users for example T216853 Change-Id: I965c45f8b548abb16b400571ddf7852ca088529b
This commit is contained in:
parent
b45120731f
commit
52918caff9
|
@ -8,7 +8,8 @@
|
|||
* @param {string} [errorUrl] to be logged
|
||||
*/
|
||||
function handleError( errorMessage, lineNumber, columnNumber, errorUrl ) {
|
||||
var errorSamplingRate = config.get( 'wgMinervaErrorLogSamplingRate', 0 ),
|
||||
var suffix,
|
||||
errorSamplingRate = config.get( 'wgMinervaErrorLogSamplingRate', 0 ),
|
||||
sessionToken = user.sessionId(),
|
||||
EVENT_CLIENT_ERROR_LOG = 'wikimedia.event.WebClientError',
|
||||
page = M.getCurrentPage(),
|
||||
|
@ -46,7 +47,8 @@
|
|||
);
|
||||
}
|
||||
if ( config.get( 'wgMinervaCountErrors' ) ) {
|
||||
mw.track( 'counter.MediaWiki.minerva.WebClientError', 1 );
|
||||
suffix = user.isAnon() ? '.anon' : '.loggedin';
|
||||
mw.track( 'counter.MediaWiki.minerva.WebClientError' + suffix, 1 );
|
||||
}
|
||||
}
|
||||
// track RL exceptions
|
||||
|
|
Loading…
Reference in New Issue