-
Notifications
You must be signed in to change notification settings - Fork 897
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
Specify how probability sampler is used with ParentOrElse #704
Specify how probability sampler is used with ParentOrElse #704
Conversation
3ea934d
to
d985de9
Compare
specification/trace/sdk.md
Outdated
* The default behavior is to apply the sampling probability only for Spans | ||
that are root spans (no parent) and Spans with remote parent. However there | ||
should be configuration to change this to "root spans only", or "all spans". | ||
* The probability sampler should ignore the parent `SampledFlag`. |
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.
Note that in Java, the probability sampler also checks parent links' sampled flag. Should we explicitly call out somewhere how to deal with links in combination with sampling? Probably out of scope for this PR though. See https://github.com/open-telemetry/opentelemetry-java/blob/v0.6.0/sdk/src/main/java/io/opentelemetry/sdk/trace/Samplers.java#L234
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.
Oh, good point. It sounds 'big' enough to be done in its own issue/PR.
needs a rebase |
b199cc3
to
39433c9
Compare
I noticed that the
Probability
sampler specification still specifies parent handling, but that it is superseded by the existence of theParentOrElse
sampler. This change makes it clear that parent handling should be done byParentOrElse
sampler and thatProbability
sampler does only probability.