[SDK] Support TracerConfigurator updates#4065
Open
dbarker wants to merge 7 commits into
Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4065 +/- ##
==========================================
+ Coverage 81.99% 82.00% +0.01%
==========================================
Files 385 386 +1
Lines 16023 16043 +20
==========================================
+ Hits 13137 13155 +18
- Misses 2886 2888 +2
🚀 New features to boost your workflow:
|
lalitb
reviewed
May 12, 2026
lalitb
reviewed
May 12, 2026
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.
Add support for updating the TracerConfigurator at runtime and provide an example.
The TracerProvider configuration includes the TracerConfigurator. SDKs may support updating the TracerConfigurator and resulting TracerConfig objects at runtime provided it is applied to previously created tracers. This feature allows dynamic enabling of tracers to turn tracing on or off without restarting the application.
https://opentelemetry.io/docs/specs/otel/trace/sdk/#configuration
Changes
TracerProvider::UpdateTracerConfiguratormethod and testsTracer::tracer_config_to be an atomic shared pointer that will support dynamic updates including growth beyond the enabled bool.For significant contributions please make sure you have completed the following items:
CHANGELOG.mdupdated for non-trivial changes