PromPHP / prometheus_client_php

Prometheus instrumentation library for PHP applications
https://prometheus.io/docs/concepts/metric_types/
Apache License 2.0
415 stars 91 forks source link

Include metric name in exception message #131

Closed vlahanas closed 9 months ago

vlahanas commented 10 months ago

The method escapeAllLabels throws a runtime exception when labels of a metric cannot be combined. However, this exception lacks a very important piece of information, the name of the metric that caused the error to happen.