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 $pageLanguage
); );
$metrics = MediaWikiServices::getInstance()->getParsoidSiteConfig()->metrics(); $statsFactory = MediaWikiServices::getInstance()->getParsoidSiteConfig()->prefixedStatsFactory();
if ( $metrics ) { $helper->setMetrics( $statsFactory );
$helper->setMetrics( $metrics );
}
return $helper; return $helper;
} }