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

TraceFlags is not propagated from parent span span to child span #602

Closed
ThomsonTan opened this issue Mar 9, 2021 · 0 comments · Fixed by #603
Closed

TraceFlags is not propagated from parent span span to child span #602

ThomsonTan opened this issue Mar 9, 2021 · 0 comments · Fixed by #603
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ThomsonTan
Copy link
Contributor

When creating new Span with parent span context passed, we ignore the trace flags from the parent span context and always pass 0, see below code snippet. This blocks propagation of sampled status from parent span to child span.

new trace_api::SpanContext(trace_id, span_id, trace_api::TraceFlags(), false,

@ThomsonTan ThomsonTan added the bug Something isn't working label Mar 9, 2021
@ThomsonTan ThomsonTan self-assigned this Mar 9, 2021
@lalitb lalitb added this to the 1.0.0-rc.1 milestone Apr 26, 2021
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