grpc / grpc-java

The Java gRPC implementation. HTTP/2 based RPC
https://grpc.io/docs/languages/java/
Apache License 2.0
11.39k stars 3.83k forks source link

examples: Add gRPC OpenTelemetry example (v1.65.x backport) #11309

Closed DNVindhya closed 3 months ago

DNVindhya commented 3 months ago

This PR adds a gRPC OpenTelemetry example. The example uses Prometheus exporter to export metrics and can be verified locally.

It also provides an example using LoggingMetricExporter to export and log the metrics using java.util.logging.

Backport of #11299.