feat(chore): declarative configuration for trace_provider#2161
Open
xuan-cao-swi wants to merge 11 commits into
Open
feat(chore): declarative configuration for trace_provider#2161xuan-cao-swi wants to merge 11 commits into
xuan-cao-swi wants to merge 11 commits into
Conversation
thompson-tomo
left a comment
Contributor
There was a problem hiding this comment.
One other thing, how are we ensuring the loading of the the env variables are disabled when covered by declarative config?
Will the current approach support dynamic reloading of the config which is also a part of the spec?
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.
Description
This PR introduces an initial declarative configuration implementation for OpenTelemetry Ruby under otelconfig, intentionally scoped to tracing only.
I followed the Go otelconfig convention for config structure and behavior where it maps well to Ruby.
Minimalist approach: no hard dependency on optional components, which optional propagators and resource detectors are resolved only if the corresponding gem has been required by the user. If an optional component is not available, configuration continues safely with warnings instead of failing startup.
Scope in this PR
Try
/exampleUpdated (2026-06-13):
bundle exec rake generate:constantswill auto-generate the struct file.