mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-27 09:42:16 +00:00
Migrate MediaWiki.pdfhandler.shell.retrieve_meta_data.rate to statslib
Bug: T359370 Change-Id: I12f5bddf1007625fd4a8e62a7361239263d6749b
This commit is contained in:
parent
994b07c9fd
commit
8bbcae9355
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue