[bug] Prometheus Exporter does not expose Meter Tags and Version #5836
Labels
bug
Something isn't working
needs-triage
New issues which have not been classified or triaged by a community member
pkg:OpenTelemetry.Exporter.Prometheus.HttpListener
Issues related to OpenTelemetry.Exporter.Prometheus.HttpListener NuGet package
Package
OpenTelemetry.Exporter.Prometheus.HttpListener
Package Version
Runtime Version
net8.0
Description
When creating a System.Diagnostics.Metrics.Meter with a version and tags, e.g.
The version and tags provided do not show up in Prometheus exported metrics.
Steps to Reproduce
I have a branch of this Repository with one of the integration tests edited to show this issue, you can find the branch here: main...ProbablePrime:opentelemetry-dotnet:prime/tests/meter-tags
Expected Result
I expect, the Meter sourced tags to be included in the output. This is shown in the test case expected data changes.
E.g.
counter_double_bytes_total{{otel_scope_name='{MeterName}',otel_scope_version='{MeterVersion}',**meterKey1='value1',meterKey2='value2'**,key1='value1',key2='value2'}}
Actual Result
It results in a failed test.
Additional Context
I apologize for any terminology goofs, here. I'm brand new to the OpenTelemetry scene. Please ask questions if you are unsure.
This is based on:
Which may have additional information to help.
Thank you!
The text was updated successfully, but these errors were encountered: