Reputation: 21
I have OpenCensus implemented in my Go application and planning on sending SpanContext to a downstream service that uses OpenTelemetry. The SpanContext would include populated TraceID, SpanID, Tracestate and I'm planning to send the SpanContext in the PubSub message attributes.
I'm wondering if the information within the SpanContext sent downstream will be recognizable by OpenTelemetry?
Upvotes: 1
Views: 119
Reputation: 2274
I'm wondering if the information within the SpanContext sent downstream will be recognizable by OpenTelemetry?
It will be recognizable, and one of the project's goals is to make a reasonable migrations path for OC
or OT
users to OTEL since it is a merger of OpenCensus and OpenTracing. And you can look at the OTEL go code to confirm https://github.com/open-telemetry/opentelemetry-go/blob/trace/v1.14.0/trace/trace.go#L184-L190
Upvotes: 0