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:
daniel 2023-06-19 19:10:41 +02:00 committed by Bartosz Dziewoński
parent b5e3d70f47
commit 4a2b3b580f

View file

@ -14,7 +14,6 @@ use Language;
use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
use MediaWiki\MediaWikiServices;
use MediaWiki\Revision\RevisionRecord;
use MediaWiki\WikiMap\WikiMap;
use Message;
use NullStatsdDataFactory;
use PrefixingStatsdDataFactoryProxy;
@ -53,7 +52,7 @@ trait ApiParsoidTrait {
* @param StatsdDataFactoryInterface $stats
*/
protected function setStats( StatsdDataFactoryInterface $stats ) {
$this->stats = new PrefixingStatsdDataFactoryProxy( $stats, WikiMap::getCurrentWikiId() );
$this->stats = new PrefixingStatsdDataFactoryProxy( $stats, 'VE' );
}
/**