Selaa lähdekoodia

Remove extraneous stats

Jordi Boggiano 5 vuotta sitten
vanhempi
commit
39ce70cfde
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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