add IdGenerator definition to TracerProvider#624
Merged
codeboten merged 6 commits intoJun 2, 2026
Merged
Conversation
IdGenerator is a spec-stable SDK extension point. Model it consistently with other SDK extension plugins (Sampler, SpanExporter, SpanProcessor), with a single built-in `random` for the spec-default behavior. Closes open-telemetry#70. Assisted-by: Claude claude-opus-4-7
Member
Author
|
ping @open-telemetry/configuration-approvers |
codeboten
approved these changes
Jun 1, 2026
jack-berg
reviewed
Jun 1, 2026
jack-berg
approved these changes
Jun 1, 2026
jack-berg
left a comment
Member
There was a problem hiding this comment.
Just a nit on the description. Thanks!
Co-authored-by: Jack Berg <34418638+jack-berg@users.noreply.github.com>
Member
Author
|
Thanks both 👍🏻 |
Assisted-by: Claude claude-opus-4-7
This was referenced Jun 3, 2026
Closed
pull Bot
pushed a commit
to MC-MAGA/opentelemetry-specification
that referenced
this pull request
Jun 5, 2026
Declarative config added IdGenerator in open-telemetry/opentelemetry-configuration#624 Updating the table of "Supported SDK plugin components" to reflect.
dashpole
pushed a commit
to dashpole/opentelemetry-specification
that referenced
this pull request
Jun 8, 2026
Declarative config added IdGenerator in open-telemetry/opentelemetry-configuration#624 Updating the table of "Supported SDK plugin components" to reflect.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
IdGeneratorto the schema as an SDK extension plugin underTracerProvider, with a single built-inrandomfor the spec-default random TraceId/SpanId generation.Modeled consistently with existing SDK extension plugins (
Sampler,SpanExporter,SpanProcessor). Treated as stable (no/developmentsuffix) — IdGenerator is a stable spec extension point in trace/sdk.md, and the plugin shape (name + opaque properties bag) has nothing in flux. The property is optional and falls back to the SDK's random default when omitted.Closes #70. Unblocks opentelemetry-js#6616 and similar work in other languages (originally surfaced from opentelemetry-cpp prototyping).
Notes
random(matches Java autoconfigure'sOTEL_TRACES_ID_GENERATOR=randomconvention). The spec doesn't standardize a name.RandomIdGeneratorhas no configuration properties — the spec doesn't define any.unknown; the inline property-level status forid_generatorinheritsTracerProvider's overall status per the existing tooling behavior. Maintainers can addpropertyOverridesin follow-up PRs.Test plan
makepasses (compile-schema, validate-examples, validate-snippets, fix-language-implementations, generate-markdown)opentelemetry_configuration.jsoncontainsIdGeneratorandRandomIdGenerator$defsschema-docs.mdlistsIdGeneratorunder SDK Extension PluginsIdGenerator_custom.yamlsnippet validates against the compiled schemarandomis acceptable vs.default/default_random