As part of the effort to stabilize OTLP -> Prometheus conversion, instrumentation scope labels should be added to metric points in the Prometheus exporter, per spec.
Currently, in opentelemetry-exporter-prometheus, metrics are iterated from scope_metrics, but label construction uses only point attributes and does not include scope_metrics.scope fields.
As a result, exported metrics currently miss:
otel_scope_name
otel_scope_version
otel_scope_schema_url
otel_scope_<attr> labels
Related:
As part of the effort to stabilize OTLP -> Prometheus conversion, instrumentation scope labels should be added to metric points in the Prometheus exporter, per spec.
Currently, in
opentelemetry-exporter-prometheus, metrics are iterated fromscope_metrics, but label construction uses only point attributes and does not includescope_metrics.scopefields.As a result, exported metrics currently miss:
otel_scope_nameotel_scope_versionotel_scope_schema_urlotel_scope_<attr>labelsRelated: