Merge "Stop collecting stats per wiki"

This commit is contained in:
jenkins-bot 2023-06-20 11:39:26 +00:00 committed by Gerrit Code Review
commit ac4032eff5

View file

@ -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' );
} }
/** /**