Counter metric name with duplicated _total
suffix after upgrading otel version
#3614
Labels
area:metrics
Part of OpenTelemetry Metrics
bug
Something isn't working
pkg:SDK
Related to an SDK package
response needed
Waiting on user input before progress can be made
Milestone
Description
I updated OpenTelemetry package versions and fixed every breaking change but now I can't get my metrics to work properly.
After upgrading libraries my counter metrics started to get a weird duplication for the
_total
value:Data from
/metrics
endpoint of the prometheus exporter:Apparently for every combination of labels, a new metric is created with a
_total
suffix, which is duplicated for each one.Environment
Versions before:
Versions after:
Steps To Reproduce
Configuring metrics and exporter:
registry.go
metrics.go
How I'm using the meter:
Expected behavior
The metric should export with the same name for each combination of labels.
The text was updated successfully, but these errors were encountered: