opentelemetry-java-instrumentation icon indicating copy to clipboard operation
opentelemetry-java-instrumentation copied to clipboard

Decouple trace context propagation functionality for gRPC into a separate library

Open nareshz opened this issue 7 months ago • 0 comments

Is your feature request related to a problem? Please describe.

We want to propagate trace context using W3 Trace Context header(traceparent) in gRPC requests made by using Spanner client library.

Currently https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/grpc-1.6/library provides GrpcTelemetry ClientInterceptor which can be used to intercept gRPC calls and add trace context headers in calls. The issue is that this library is in alpha version due to work going on semantic conventions.

We want to avoid adding alpha version library inside Spanner client library for trace context propagation as it may have breaking change in the future and instead use a stable one.

Describe the solution you'd like

Creating a stable library specific to only trace context propagation can solve the issue.

Describe alternatives you've considered

No response

Additional context

No response

nareshz avatar Jun 28 '24 05:06 nareshz