Skip to content

feat: add schema_url support to instrumentation scope for tracers - #2402

Open
hannahramadan wants to merge 1 commit into
open-telemetry:mainfrom
hannahramadan:schema_url_instrumetation_scope
Open

hannahramadan wants to merge 1 commit into
open-telemetry:mainfrom
hannahramadan:schema_url_instrumetation_scope

Conversation

@hannahramadan

@hannahramadan hannahramadan commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Adds schema_url support to instrumentation scope for tracers, so a Tracer can declare which version of the semantic conventions its telemetry follows.

This approach follows #2094's pattern and is part of #2381. This replaces #1237's tracer half (credit to @ahayworth for the work that made this easier).

API:

  • the no-op TracerProvider now accepts a schema_url keyword
  • the ProxyTracerProvider passes it along once real provider is available
  • also works with legacy providers

SDK:

  • schema_url is added as the last field of InstrumentationScope, so existing positional callers don't break

OTLP

  • writes schema_url to ScopeSpans.schema_url
  • if no schema_url is set, leaves it as empty

@github-actions

Copy link
Copy Markdown
Contributor

👋 This pull request has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the keep label to hold stale off permanently, or do nothing. If you do nothing this pull request will be closed eventually by the stale bot

@github-actions github-actions Bot added the stale label Oct 16, 2026
@hannahramadan
hannahramadan force-pushed the schema_url_instrumetation_scope branch 2 times, most recently from f35de80 to 3fa5f43 Compare November 14, 2026 00:59
@hannahramadan
hannahramadan force-pushed the schema_url_instrumetation_scope branch from 3fa5f43 to 817c559 Compare November 14, 2026 01:13
@hannahramadan
hannahramadan marked this pull request as ready for review November 14, 2026 01:44

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants