How correlated span between gRPC server and client in same service #1519
victorpacheco3107
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I have a go service that expose a gRPC service, and consume another gRPC service, this last is a gRPC java based service, that tracing correctly with opentelemetry.
In my go service, I copy this files: interceptor.go and grpctrace.go from repo opentelemetry-go-contrib, here https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/instrumentation/google.golang.org/grpc/otelgrpc
Now, I create a file called config.go:
Now, when I start my gRPC server, I do this:
This is the server interceptor, this is called every petition:
The client that consume the gRPC java service:
And, the client interceptor:
This generate two span, the first with server request and response, the second with the client info, but this are not correlated.
What should I do so that the spans of the two interceptors are correlated?
Beta Was this translation helpful? Give feedback.
All reactions