Skip to content

OTEL metrics are setting service.name as attributes, where it should be set as resource attributes #42266

@howardyoo

Description

@howardyoo

Apache Airflow version

2.10.1

If "Other Airflow 2 version" selected, which one?

No response

What happened?

OTEL metrics support has metric data being emitted, however, the way it is currently instrumented has service.name set up as attributes, not resource attributes, thereby causing the service name to be interpreted incorrectly.

What you think should happen instead?

When metric data are being emitted, it should have the service.name set as resource attributes.

How to reproduce

Run airflow using otel metrics turned on, and observe that metric data being emitted has service.name set as attributes, not as resource attributes (turning on the debugging mode on otel collector also helps)

Operating System

Linux

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yettelemetryTelemetry-related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions