mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 06:13:54 +00:00
Errors can be counted in statsv
Bug: T205582 Change-Id: I8f67b8356ac271872cac39a416ffefce47959177
This commit is contained in:
parent
943a4df894
commit
07a3b81c91
|
@ -36,6 +36,11 @@ for the page.
|
|||
Controls whether site notices should be shown.
|
||||
See <https://www.mediawiki.org/wiki/Manual:$wgSiteNotice>.
|
||||
|
||||
#### $wgMinervaCountErrors
|
||||
* Type: `Boolean`
|
||||
* Default: `false`
|
||||
|
||||
Whether to count client side errors in statsv.
|
||||
|
||||
#### $wgMinervaErrorLogSamplingRate
|
||||
* Type: `Integer`
|
||||
|
|
|
@ -197,6 +197,7 @@ class MinervaHooks {
|
|||
'wgMinervaSchemaMainMenuClickTrackingSampleRate' =>
|
||||
$config->get( 'MinervaSchemaMainMenuClickTrackingSampleRate' ),
|
||||
'wgMinervaABSamplingRate' => $config->get( 'MinervaABSamplingRate' ),
|
||||
'wgMinervaCountErrors' => $config->get( 'MinervaCountErrors' ),
|
||||
'wgMinervaErrorLogSamplingRate' => $config->get( 'MinervaErrorLogSamplingRate' ),
|
||||
'wgMinervaReadOnly' => wfReadOnly()
|
||||
];
|
||||
|
|
|
@ -45,6 +45,9 @@
|
|||
}, DEFAULT_ERROR_DATA )
|
||||
);
|
||||
}
|
||||
if ( config.get( 'wgMinervaCountErrors' ) ) {
|
||||
mw.track( 'counter.MediaWiki.minerva.WebClientError', 1 );
|
||||
}
|
||||
}
|
||||
// track RL exceptions
|
||||
trackSubscribe( 'resourceloader.exception', function ( topic, data ) {
|
||||
|
|
Loading…
Reference in a new issue