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

Using grpc-opentelemetry for instrumenting GRPC

Open anuragagarwal561994 opened this issue 1 year ago • 4 comments

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

Currently custom library is being used for tracking grpc requests, grpc-java in their latest release have added support for OpenTelemetry metrics. It would be simple and provide more information and if we use the new grpc-opentelemetry library instead.

Describe the solution you'd like

We should use the grpc-opentelemetry setup provided by grpc-java

https://github.com/grpc/grpc-java/tree/master/opentelemetry

Describe alternatives you've considered

No response

Additional context

No response

anuragagarwal561994 avatar Jun 07 '24 07:06 anuragagarwal561994

Let me know what the community thinks of the same or if more information is required and I can help contributing

anuragagarwal561994 avatar Jun 07 '24 07:06 anuragagarwal561994

As you mentioned the opentelemetry plugin in grpc-java provides only metrics. The grpc instrumentation here also provides traces so replacing it with what grpc-java has is not an option at the moment. Furthermore the code in grpc-java does not follow open telemetry semantic conventions. What could be considered is an instrumentation that automatically enables the metrics when opentelemetry plugin for grpc-java is present (I assume that by default user needs to manually enable it).

laurit avatar Jun 07 '24 09:06 laurit

@laurit yes that is what I was intending to

anuragagarwal561994 avatar Jun 07 '24 14:06 anuragagarwal561994

we are planning to collaborate with the gRPC team when we kick off the RPC semantic convention stability effort later this year, it may be worth waiting to see what comes out of that effort

trask avatar Jun 07 '24 14:06 trask

Since there has been no activity on this enhancement for the past year we are closing it to help maintain our backlog. Anyone who would like to work on it is still welcome to do so, and we can re-open it at that time.

github-actions[bot] avatar Sep 29 '25 22:09 github-actions[bot]

Re-opening. We are hoping to tackle this as part of the recently kicked off RPC semantic convention stability SIG.

trask avatar Sep 29 '25 22:09 trask