Skip to content

telemetry: a service.name in OTEL_RESOURCE_ATTRIBUTES may override the component's own #1562

Closed

Description

@bpalermo

common/telemetry/setup (and the mesh-dns, supervisor and prober builders) pass WithAttributes(service.name=…) before WithFromEnv(). With the OTel SDK's merge order a service.name in OTEL_RESOURCE_ATTRIBUTES may therefore win over the component's own name. Inferred from the code, not tested. Nothing is affected today: only the edge Envoy container sets one and it runs no Go telemetry.

Task: a unit test that sets the env var and asserts the resource's service.name; put the component's name last if the test shows the override.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugminorobservability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions