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

[propagator] Set sampling bit when sampling decision is debug #369

Merged
merged 2 commits into from
Sep 29, 2020

Conversation

TommyCpp
Copy link
Contributor

closes #367

According to the spec. Debug sampling decision implies accept(sampled) decision.

But we didn't set sample bitmask. So when trace state is debug, IsSampled method will still return false, which is different from spec.

Now we make sure when debug bitmask is set, sample bitmask will also be set.

…3 Propagator.

According to the spec. Debug sampling decision implies accept(sampled) decision.

But we didn't set sample bitmask. So when trace state is debug, `IsSampled` method will still return false, which is different from spec.

Now we make sure when debug bitmask is set, sample bitmask will also be set.
@TommyCpp TommyCpp changed the title [propagator] Fix sampling bit when sampling decision is debug [propagator] Set sampling bit when sampling decision is debug Sep 29, 2020
@MrAlias MrAlias merged commit 71b6d7f into open-telemetry:master Sep 29, 2020
@Aneurysm9 Aneurysm9 mentioned this pull request Oct 9, 2020
plantfansam referenced this pull request in plantfansam/opentelemetry-go-contrib Mar 18, 2022
* Make span start/end configuration more greppable

Rename SpanOption to StartOption
Rename StartOptions to StartConfig
Rename EndOptions to EndConfig

fixes #197
@pellared pellared added this to the untracked milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

B3 Propagators should set sample bit when debug flag is set
5 participants