Skip to content
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

Conversation

dyladan
Copy link
Member

@dyladan dyladan commented Jul 15, 2020

I noticed that the Probability sampler specification still specifies parent handling, but that it is superseded by the existence of the ParentOrElse sampler. This change makes it clear that parent handling should be done by ParentOrElse sampler and that Probability sampler does only probability.

specification/trace/sdk.md Outdated Show resolved Hide resolved
@carlosalberto carlosalberto added area:sampling Related to trace sampling area:sdk Related to the SDK release:required-for-ga Must be resolved before GA release, or nice to have before GA labels Jul 15, 2020
* 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`.
Copy link
Member

@Oberon00 Oberon00 Jul 15, 2020

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

Copy link
Contributor

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.

specification/trace/sdk.md Outdated Show resolved Hide resolved
specification/trace/sdk.md Outdated Show resolved Hide resolved
@yurishkuro
Copy link
Member

needs a rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:sampling Related to trace sampling area:sdk Related to the SDK release:required-for-ga Must be resolved before GA release, or nice to have before GA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants