mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Stop collecting stats per wiki
Having per-wiki statistics is neat but expensive. Now that VE has been switched to not use RESTbase on all wikis, Go back to collecting all stats under a single key. The relevant dashboards have already been adjusted accordingly. Change-Id: I9666bfa3fed547f3f619a9e0c9c24b9240edc359
This commit is contained in:
parent
b5e3d70f47
commit
4a2b3b580f
|
@ -14,7 +14,6 @@ use Language;
|
||||||
use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
|
use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use MediaWiki\Revision\RevisionRecord;
|
use MediaWiki\Revision\RevisionRecord;
|
||||||
use MediaWiki\WikiMap\WikiMap;
|
|
||||||
use Message;
|
use Message;
|
||||||
use NullStatsdDataFactory;
|
use NullStatsdDataFactory;
|
||||||
use PrefixingStatsdDataFactoryProxy;
|
use PrefixingStatsdDataFactoryProxy;
|
||||||
|
@ -53,7 +52,7 @@ trait ApiParsoidTrait {
|
||||||
* @param StatsdDataFactoryInterface $stats
|
* @param StatsdDataFactoryInterface $stats
|
||||||
*/
|
*/
|
||||||
protected function setStats( StatsdDataFactoryInterface $stats ) {
|
protected function setStats( StatsdDataFactoryInterface $stats ) {
|
||||||
$this->stats = new PrefixingStatsdDataFactoryProxy( $stats, WikiMap::getCurrentWikiId() );
|
$this->stats = new PrefixingStatsdDataFactoryProxy( $stats, 'VE' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue