endclothing / prometheus_client_php

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

Prevent errors being thrown when calling registerGauge or registerCounter #59

Open bethany-dawn opened 4 years ago

bethany-dawn commented 4 years ago

While using XDebug in another app, I noticed errors continually being thrown in this file. It seems unexpected that these functions would throw an error, since the called functions are expected to perform the registration. We're going to ignore these files, but it might be worth adding this update.