-
I have a service A using otel, and a service B(which I can't modify its source) using opentracing. In service A, I already has opts := []grpc.DialOption{
grpc.WithUnaryInterceptor(otelgrpc.UnaryClientInterceptor()),
grpc.WithStreamInterceptor(otelgrpc.StreamClientInterceptor()),
}
conn, err := client.Dial(addr, opts) But I don't know how to propagate the tracing info from A to B. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You need to propagate context using a propagator. First you'll need to determine what propagation format (W3C tracecontext, B3, ot ...) the receiving service is using and then use an appropriate propagator from the main repo or contrib. |
Beta Was this translation helpful? Give feedback.
-
Hey, I'm having a similar issue and I cannot figure out how to fix this. I have set-up a repo to illustrate my issue: https://github.com/rogierlommers/otel-b3-header-propagation Can someone point me to some advice how to fix the B3 header propagation? |
Beta Was this translation helpful? Give feedback.
You need to propagate context using a propagator. First you'll need to determine what propagation format (W3C tracecontext, B3, ot ...) the receiving service is using and then use an appropriate propagator from the main repo or contrib.