Skip to content

Stabilize OTLP -> Prometheus: add otel_scope_* labels #5152

@johannaojeling

Description

@johannaojeling

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions