Merge "Use statslib instead of statsd in DirectParsoidClient"

This commit is contained in:
jenkins-bot 2024-10-21 16:59:40 +00:00 committed by Gerrit Code Review
commit 03f8d2b916

View file

@ -108,10 +108,8 @@ class DirectParsoidClient implements ParsoidClient {
$pageLanguage
);
$metrics = MediaWikiServices::getInstance()->getParsoidSiteConfig()->metrics();
if ( $metrics ) {
$helper->setMetrics( $metrics );
}
$statsFactory = MediaWikiServices::getInstance()->getParsoidSiteConfig()->prefixedStatsFactory();
$helper->setMetrics( $statsFactory );
return $helper;
}