SuppressDownstreamInstrumentation
option in OpenTelemetry.Instrumentation.GrpcNetClient instrumentation
#1727
Labels
bug
Something isn't working
comp:instrumentation.grpcnetclient
Things related to OpenTelemetry.Instrumentation.GrpcNetClient
Issue
The usage of SuppressDownstreamInstrumentation isn't supported when used with the rc/stable versions of
OpenTelemetry.Instrumentation.Http
instrumentation. The limitation comes from the changes introduced in open-telemetry/opentelemetry-dotnet#5077.SuppressDownstreamInstrumentation
relies onOpenTelemetry.Instrumentation.Http
instrumentation to avoid overriding the injected ActivityContext byOpenTelemetry.Instrumentation.GrpcNetClient
instrumentation. However, sinceOpenTelemetry.Instrumentation.Http
doesn't depend on the SDK, this suppression isn't possible.As a result, When
OpenTelemetry.Instrumentation.GrpcNetClient
is used withOpenTelemetry.Instrumentation.Http
, the outgoing request will always contain thetraceparent
header set from ActivityContext of HttpClient Activity instead of GrpcClient Activity .Workaround
Use beta versions of OpenTelemetry.Instrumentation.Http instrumentation if SuppressDownstreamInstrumentation is neededUpdate(4/15): The workaround shared above is not recommended to be used due to GHSA-vh2m-22xx-q94f. Alternate options needs to be further evaluated.
The text was updated successfully, but these errors were encountered: