gRPC C++ Context Inheritance Mechanism

21 views
Skip to first unread message

Mann

unread,
Feb 18, 2026, 1:29:36 PM (yesterday) Feb 18
to grpc.io
Hi!
Does gRPC providing mechanisms for auto-inheritance of context/metadata among the server-client calls? I need to propagate data from parent(server) call to child(client) call inside single application. Honestly, I'm trying to implement simple OpenTelemetry tracing using gRPC-Interceptors API (for some reasons I'm not able to use otel-plugin from gRPC).
Inter-service context (traceId, spanId, etc.) propagation works fine, but not Intra-service. I was trying to use census_context and set data at server-side interceptor (since it assigned to gRPC-call) and then get it at client-side interceptor. But even though it's still a single application and the server call is the "parent" for the client call, it doesn't works for me.
I will be glad for any advice and suggestions.

Best regards,
Anton
Reply all
Reply to author
Forward
0 new messages