You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example for the promhttp handlers mention adding a ConstLabel {"handler": "some_handler"}.
When you do this, checkLabels will panic. I think it would make sense to not look at the ConstLabel when checking for labels. Otherwise you have to encode the handler name into the metric names to get sensible metrics for your handlers.
The text was updated successfully, but these errors were encountered:
- Use local registry to avoid conflicts between tests.
- Expose #299 by
using ConstLabels in a test.
- Improve example: Buckets and help string must be consistent, even
if the former is not enforced as of now, but see
#222
- Use local registry to avoid conflicts between tests.
- Expose prometheus/client_golang#299 by
using ConstLabels in a test.
- Improve example: Buckets and help string must be consistent, even
if the former is not enforced as of now, but see
prometheus/client_golang#222
The example for the promhttp handlers mention adding a
ConstLabel {"handler": "some_handler"}
.When you do this,
checkLabels
will panic. I think it would make sense to not look at theConstLabel
when checking for labels. Otherwise you have to encode the handler name into the metric names to get sensible metrics for your handlers.The text was updated successfully, but these errors were encountered: