When creating a System.Diagnostics.Metrics.Meter with a version and tags, e.g.
var meterTags = new KeyValuePair<string, object>[]
{
new KeyValuePair<string, object>("meterKey1", "value1"),
new KeyValuePair<string, object>("meterKey2", "value2"),
};
var meter = meterFactory.Create("Test", "1.0.0", meterTags);
The version and tags provided do not show up in Prometheus exported metrics.
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.
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: https://github.com/open-telemetry/opentelemetry-dotnet/compare/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!