diff --git a/src/DataCollector/StatsdDataCollector.php b/src/DataCollector/StatsdDataCollector.php index 36421d7..112d467 100644 --- a/src/DataCollector/StatsdDataCollector.php +++ b/src/DataCollector/StatsdDataCollector.php @@ -18,12 +18,20 @@ class StatsdDataCollector extends DataCollector * Construct the data collector */ public function __construct() + { + $this->reset(); + } + + /** + * Reset the data collector to initial state + */ + public function reset() { $this->statsdClients = []; $this->data['clients'] = []; $this->data['operations'] = 0; } - + /** * Kernel event *