Prometheus exporter handles instrumentation scope and prevents collisions #3972
Labels
enhancement
New feature or request
pkg:OpenTelemetry.Exporter.Prometheus.AspNetCore
Issues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package
Now that open-telemetry/opentelemetry-specification#2703 is released, we can update the prometheus exporter to make use of OpenTelemetry scope, particularly for reducing collisions between metrics with the same name.
Describe the solution you'd like
There are a few components:
otel_scope_name
andotel_scope_version
attributes to all metrics based on the instrumentation scope name and version.otel_scope_info
metric following https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/compatibility/prometheus_and_openmetrics.md#instrumentation-scope-1.Note that the exporter SHOULD do the above by default, but may allow disabling the behavior.
The text was updated successfully, but these errors were encountered: