Send edit stash metrics for cache attempts
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 26 May 2016 19:46:32 +0000 (12:46 -0700)
committerOri.livneh <ori@wikimedia.org>
Thu, 26 May 2016 21:02:39 +0000 (21:02 +0000)
Change-Id: I22d5626cca55c2cc35e1b33fced5902e8d364d40

includes/api/ApiStashEdit.php

index 40aa4d4..e739e51 100644 (file)
@@ -127,6 +127,8 @@ class ApiStashEdit extends ApiBase {
                        $status = 'busy';
                }
 
+               $this->getStats()->increment( "editstash.cache_stores.$status" );
+
                $this->getResult()->addValue( null, $this->getModuleName(), [ 'status' => $status ] );
        }