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.
|
Controls whether site notices should be shown.
|
||||||
See <https://www.mediawiki.org/wiki/Manual:$wgSiteNotice>.
|
See <https://www.mediawiki.org/wiki/Manual:$wgSiteNotice>.
|
||||||
|
|
||||||
|
#### $wgMinervaCountErrors
|
||||||
|
* Type: `Boolean`
|
||||||
|
* Default: `false`
|
||||||
|
|
||||||
|
Whether to count client side errors in statsv.
|
||||||
|
|
||||||
#### $wgMinervaErrorLogSamplingRate
|
#### $wgMinervaErrorLogSamplingRate
|
||||||
* Type: `Integer`
|
* Type: `Integer`
|
||||||
|
|
|
@ -197,6 +197,7 @@ class MinervaHooks {
|
||||||
'wgMinervaSchemaMainMenuClickTrackingSampleRate' =>
|
'wgMinervaSchemaMainMenuClickTrackingSampleRate' =>
|
||||||
$config->get( 'MinervaSchemaMainMenuClickTrackingSampleRate' ),
|
$config->get( 'MinervaSchemaMainMenuClickTrackingSampleRate' ),
|
||||||
'wgMinervaABSamplingRate' => $config->get( 'MinervaABSamplingRate' ),
|
'wgMinervaABSamplingRate' => $config->get( 'MinervaABSamplingRate' ),
|
||||||
|
'wgMinervaCountErrors' => $config->get( 'MinervaCountErrors' ),
|
||||||
'wgMinervaErrorLogSamplingRate' => $config->get( 'MinervaErrorLogSamplingRate' ),
|
'wgMinervaErrorLogSamplingRate' => $config->get( 'MinervaErrorLogSamplingRate' ),
|
||||||
'wgMinervaReadOnly' => wfReadOnly()
|
'wgMinervaReadOnly' => wfReadOnly()
|
||||||
];
|
];
|
||||||
|
|
|
@ -45,6 +45,9 @@
|
||||||
}, DEFAULT_ERROR_DATA )
|
}, DEFAULT_ERROR_DATA )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if ( config.get( 'wgMinervaCountErrors' ) ) {
|
||||||
|
mw.track( 'counter.MediaWiki.minerva.WebClientError', 1 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// track RL exceptions
|
// track RL exceptions
|
||||||
trackSubscribe( 'resourceloader.exception', function ( topic, data ) {
|
trackSubscribe( 'resourceloader.exception', function ( topic, data ) {
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
|
"MinervaCountErrors": false,
|
||||||
"MinervaErrorLogSamplingRate": 0,
|
"MinervaErrorLogSamplingRate": 0,
|
||||||
"MinervaDownloadNamespaces": [ 0 ],
|
"MinervaDownloadNamespaces": [ 0 ],
|
||||||
"MinervaEnableSiteNotice": false,
|
"MinervaEnableSiteNotice": false,
|
||||||
|
|
Loading…
Reference in a new issue