Explorar o código

Remove extraneous stats

Jordi Boggiano %!s(int64=5) %!d(string=hai) anos
pai
achega
39ce70cfde
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/Packagist/WebBundle/Service/QueueWorker.php

+ 2 - 2
src/Packagist/WebBundle/Service/QueueWorker.php

@@ -132,11 +132,11 @@ class QueueWorker
         $this->statsd->increment('worker.queue.processed', 1, 1, [
             'jobType' => $job->getType(),
             'status' => $result['status'],
-        ] + (!empty($result['vendor']) ? ['vendor' => $result['vendor']] : []));
+        ]);
 
         $this->statsd->timing('worker.queue.processtime', round((microtime(true) - $start) * 1000, 4), [
             'jobType' => $job->getType(),
-        ] + (!empty($result['vendor']) ? ['vendor' => $result['vendor']] : []));
+        ]);
 
         // If an exception is thrown during a transaction the EntityManager is closed
         // and we won't be able to update the job or handle future jobs