diff --git a/src/PrometheusMiddleware.php b/src/PrometheusMiddleware.php index 8e3466a..a5fde04 100644 --- a/src/PrometheusMiddleware.php +++ b/src/PrometheusMiddleware.php @@ -94,7 +94,7 @@ public function handle(Envelope $envelope, StackInterface $stack): Envelope $stamp = $envelope->last(BusNameStamp::class); if (true === $stamp instanceof BusNameStamp) { - $busName = str_replace('.', '_', $stamp->getBusName()); + $busName = str_replace(['.', '-'], '_', $stamp->getBusName()); } $counter = $this->getCounter(