-
Notifications
You must be signed in to change notification settings - Fork 888
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
The use of TraceState
together with HttpTraceContext
seems to be problematic.
#1091
Comments
@dyladan I am confused, I see this as:
Is this an implementation detail, do I miss something? |
According to spec, |
Why not? you just need to create a new |
@dyladan Can I close this issue? |
The use of
TraceState
together withHttpTraceContext
seems to be problematic.HttpTraceContext
simply serializesspanContext.traceState
.Therefore the caller of
inject
is responsible to get the needed data intospanContext.traceState
before callinginject()
.But the spec tells that
SpanContext
is immutable therefore it's not allowed to set a the newTraceState
.What is the correct way to get an updated
TraceState
into a span?Originally posted by @Flarna in open-telemetry/opentelemetry-js#1596 (comment)
The text was updated successfully, but these errors were encountered: