From bfc4edbbc54faa59164c5d78a1609035ea7df47f Mon Sep 17 00:00:00 2001 From: Yiannis Giannelos Date: Wed, 18 Sep 2024 16:13:25 +0200 Subject: [PATCH] Use statslib instead of statsd in DirectParsoidClient Depends-On: I7d4ca748c106dfd560dae31294decfb2b181e2db Depends-On: Ib14a1ee44b81476447717bc6aa00b54de1dca995 Change-Id: I0d8eb6cacd761fa4959419b10d59046e61c714ff --- includes/DirectParsoidClient.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/DirectParsoidClient.php b/includes/DirectParsoidClient.php index 3516d4dfcd..2f45a3e96f 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; }