Migrate MediaWiki.pdfhandler.shell.retrieve_meta_data.rate to statslib

Bug: T359370
Change-Id: I12f5bddf1007625fd4a8e62a7361239263d6749b
This commit is contained in:
wfan 2024-05-04 20:54:46 -07:00 committed by Krinkle
parent 994b07c9fd
commit 8bbcae9355

View file

@ -129,8 +129,10 @@ class PdfImage {
->execute();
// Record in statsd
MediaWikiServices::getInstance()->getStatsdDataFactory()
->increment( 'pdfhandler.shell.retrieve_meta_data' );
MediaWikiServices::getInstance()->getStatsFactory()
->getCounter( 'pdfhandler_shell_retrievemetadata_total' )
->copyToStatsdAt( 'pdfhandler.shell.retrieve_meta_data' )
->increment();
// Metadata retrieval is allowed to fail, but we'd like to know why
if ( $result->getExitCode() != 0 ) {