-
Notifications
You must be signed in to change notification settings - Fork 772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sdk-traces] Add support for OTEL_TRACES_SAMPLER and OTEL_TRACES_SAMPLER_ARG #5448
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.
|
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
fc4aa50
to
236c14a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Left couple of comments - Could you resolve them before merge?
… 'Unreleased' The feature was added to the codebase _after_ `1.8.0-beta.1` had already been cut. It should be made available in the next release instead, which is why it should be in the "Unreleased" section of the changelog. This was originally introduced in: - [sdk-traces] Add support for OTEL_TRACES_SAMPLER and OTEL_TRACES_SAMPLER_ARG (open-telemetry#5448) (76cafe5)
… 'Unreleased' The feature was added to the codebase _after_ `1.8.0-beta.1` had already been cut. It should be made available in the next release instead, which is why it should be in the "Unreleased" section of the changelog. This was originally introduced in: - [sdk-traces] Add support for OTEL_TRACES_SAMPLER and OTEL_TRACES_SAMPLER_ARG (open-telemetry#5448) (76cafe5)
Fixes #3601
Changes
TracerProvider
s can now have a sampler configured via theOTEL_TRACES_SAMPLER
environment variable.The supported values are:
always_off
,always_on
,traceidratio
,parentbased_always_on
,parentbased_always_off
, andparentbased_traceidratio
.The options
traceidratio
andparentbased_traceidratio
may have the sampler probability configured via theOTEL_TRACES_SAMPLER_ARG
environment variable.For details see: OpenTelemetry Environment Variable Specification.
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changes