diff --git a/includes/DirectParsoidClient.php b/includes/DirectParsoidClient.php index da7466bf46..71e364177d 100644 --- a/includes/DirectParsoidClient.php +++ b/includes/DirectParsoidClient.php @@ -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; }