[sdk-traces] Add support for OTEL_TRACES_SAMPLER and OTEL_TRACES_SAMPLER_ARG#5448
Merged
utpilla merged 29 commits intoopen-telemetry:mainfrom Mar 19, 2024
Merged
[sdk-traces] Add support for OTEL_TRACES_SAMPLER and OTEL_TRACES_SAMPLER_ARG#5448utpilla merged 29 commits intoopen-telemetry:mainfrom
utpilla merged 29 commits intoopen-telemetry:mainfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5448 +/- ##
==========================================
+ Coverage 83.38% 85.48% +2.09%
==========================================
Files 297 289 -8
Lines 12531 12463 -68
==========================================
+ Hits 10449 10654 +205
+ Misses 2082 1809 -273
Flags with carried forward coverage won't be shown. Click here to find out more.
|
CodeBlanch
reviewed
Mar 14, 2024
CodeBlanch
reviewed
Mar 14, 2024
CodeBlanch
reviewed
Mar 14, 2024
CodeBlanch
reviewed
Mar 14, 2024
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
fc4aa50 to
236c14a
Compare
CodeBlanch
reviewed
Mar 14, 2024
rajkumar-rangaraj
approved these changes
Mar 14, 2024
utpilla
reviewed
Mar 15, 2024
utpilla
reviewed
Mar 15, 2024
This was referenced Oct 11, 2025
Closed
This was referenced Nov 26, 2025
Closed
Closed
This was referenced Dec 4, 2025
This was referenced Feb 18, 2026
This was referenced Feb 26, 2026
Open
This was referenced Apr 7, 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.
Fixes #3601
Changes
TracerProviders can now have a sampler configured via theOTEL_TRACES_SAMPLERenvironment variable.The supported values are:
always_off,always_on,traceidratio,parentbased_always_on,parentbased_always_off, andparentbased_traceidratio.The options
traceidratioandparentbased_traceidratiomay have the sampler probability configured via theOTEL_TRACES_SAMPLER_ARGenvironment variable.For details see: OpenTelemetry Environment Variable Specification.
Merge requirement checklist
CHANGELOG.mdfiles updated for non-trivial changes