You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a SPAN is created by OC Tracer and started with a remote parent which include TraceState values, the TraceState won't be persisted when OpenCensusBridge is enabled. Due to the following logic didn't copy the tracestate back and forth.
Environment
OS: MacOS
Architecture: M1
Go Version: go1.22.3
opentelemetry-go version: v1.28.0
Steps To Reproduce
Setup a grpc server app with proper OpenCensus server interceptor to decode w3c trace context headers,
Enable Bridge by calling: opencensus.InstallTraceBridge()
Issue an grpc request using grpcui with tracestate header.
In the grpc server handler logic, dump the tracestate in the span.
The tracestate is nil.
Expected behavior
TraceState should be propagated as passed in the grpc tracestate header
A clear and concise description of what you expected to happen.
This is due the code:
# Summary
This is to fix issue: #5642
The original logic skips copying TraceState when convert Spans between
OTel and OC.
This PR also updated the OTel TraceState to expose the Keys function for
the propagation purpose.
---------
Co-authored-by: Sam Xie <sam@samxie.me>
Description
When a SPAN is created by OC Tracer and started with a remote parent which include TraceState values, the TraceState won't be persisted when OpenCensusBridge is enabled. Due to the following logic didn't copy the tracestate back and forth.
Environment
Steps To Reproduce
OpenCensus
server interceptor to decode w3c trace context headers,opencensus.InstallTraceBridge()
tracestate
header.Expected behavior
TraceState should be propagated as passed in the grpc tracestate header
A clear and concise description of what you expected to happen.
This is due the code:
opentelemetry-go/bridge/opencensus/internal/oc2otel/span_context.go
Line 20 in 81216fb
Also the reverse conversion in package
otel2oc
It didn't propagate tracestate information.
The text was updated successfully, but these errors were encountered: