Skip to content

Make semantic convention selection OpenTelemetry instance-scoped #20135

Description

@trask

Is your feature request related to a problem? Please describe.

SemconvStability resolves database, messaging, RPC, code, and service-peer modes once from GlobalOpenTelemetry. Instrumentation built with a different ExtendedOpenTelemetry instance can therefore ignore that instance's declarative semconv configuration.

Describe the solution you'd like

Resolve semconv mode from the supplied OpenTelemetry instance and apply the result consistently to attribute extraction, span and metric names, metric units and keys, and schema URLs.

Describe alternatives you've considered

Keeping global selection preserves internal consistency but does not support instance-scoped declarative configuration. Updating schema URLs alone can mislabel telemetry whose attributes still use the global selection.

Additional context

Identified while reviewing #20127.

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestneeds triageNew issue that requires triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions