Skip to content

Changes AlwaysParentSample to ParentSample(fallback) #810

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

Merged
merged 2 commits into from
Jun 11, 2020

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Jun 10, 2020

To match the specification for the v0.5.0 release this changes the AlwaysParentSample sample function to ParentSample(fallback Sampler). The functional change implements the functionality described in the specification.

I don't think this has much affect in reality, because our sampling decisions already do this (https://github.com/open-telemetry/opentelemetry-go/blob/master/sdk/trace/span.go#L386-L419). I'm guessing the TODOs in the specification when addressed will switch to how we are separating out these causes. Until then, I think we can add this to remain consistent with the specification and say we implement the v0.5.0 specification.

Addresses open-telemetry/opentelemetry-specification#609

@MrAlias MrAlias added pkg:SDK Related to an SDK package area:trace Part of OpenTelemetry tracing labels Jun 10, 2020
@MrAlias MrAlias self-assigned this Jun 10, 2020
@MrAlias MrAlias merged commit 7d5117f into open-telemetry:master Jun 11, 2020
@MrAlias MrAlias deleted the parent-sampler branch June 11, 2020 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:trace Part of OpenTelemetry tracing pkg:SDK Related to an SDK package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants