We added MinervaErrorLogSamplingRate to allow error logging via EventLogging, however per discussion in T203814 we have decided to only turn this on on the beta cluster.
However, it's important for us to know and be able to report on the number of errors.
To do this, we should safely use statsv
Acceptance criteria
- Every time there is an error
- As always this is feature flagged and set to false by default.
- Configuring wgMinervaErrorLogSamplingRate has no impact on statsv error counting.
- Verify that errors are counted properly beta cluster.
Developer notes
Update resources/skins.minerva.scripts/errorLogging.js handleError method so that a statsv counter is updated on every error when initialised.
For example:
mw.track( 'counter.MediaWiki.MinervaClientError', 1 ); // increment