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

Root span is not sampled correctly #782

Closed
HonghuiLu2021 opened this issue May 21, 2021 · 0 comments · Fixed by #784
Closed

Root span is not sampled correctly #782

HonghuiLu2021 opened this issue May 21, 2021 · 0 comments · Fixed by #784
Assignees
Labels
bug Something isn't working

Comments

@HonghuiLu2021
Copy link

TraceIdRatioBasedSampler always samples the root span because TraceId==0 when the sampling decision is made in the C++ version of StartSpan.

To fix, for root spans, a TraceId should be generated before calling ShouldSample, e.g. in the Java SDK.

@HonghuiLu2021 HonghuiLu2021 added the bug Something isn't working label May 21, 2021
@lalitb lalitb mentioned this issue May 21, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants