[OpenTelemetry.Instrumentation.AspNetCore] Implement gRPC server instrumentation with use of Interceptor instead or extend ResolveSpanStatusForGrpcStatusCode method #1725
Labels
enhancement
New feature or request
Feature Request
Last time, when migrating to OpenTelemetry in our team we have encountered a problem with experimental instrumentation for gRPC server from this C# project: https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry.Instrumentation.AspNetCore. The problem is that ActivityStatus is not being set with respect to this semantics for gRPC status codes: https://opentelemetry.io/docs/specs/semconv/rpc/grpc/#grpc-status - below source code of the
.ResolveSpanStatusForGrpcStatusCode(...)
method is implemented in a way it should be implemented for ActivityKind being Client:Describe the solution you'd like:
I think that we would have two possible solutions:
.ResolveSpanStatusForGrpcStatusCode(...)
method to properly resolve ActivityStatus for ActivityKind being Server based on the gRPC status code (I have linked semantics for ActivityKind being Server earlier).The text was updated successfully, but these errors were encountered: