rpc.server.duration
metric does not have a description
#4301
Labels
area: instrumentation
Related to an instrumentation package
bug
Something isn't working
instrumentation: otelgrpc
Milestone
Description
A typical metrics backend is Prometheus. When used with OpenTelemetry SDKs, the suggested deployment is to route telemetry data through an OpenTelemetry Collector configured with a Prometheus exporter. In this configuration, when other language SDKs (ie: Java) are part of the request path, all metrics must have the same description. Metrics that match on name, but not on description will be dropped by the Prometheus exporter from previously received metrics.
We have run into this issue on the OpenTelemetry Demo project, our workaround is to write a special transform rule to remove descriptions from offending metrics.
The is the error that we see in the OpenTelemetry collector logs:
Environment
otelgrpc
version: v0.43.0Steps To Reproduce
Use the gRPC instrumentation library for a gRPC service, with a MeterProvider configured
The description for the
rpc.sever.duration
metric will be blank.Expected behavior
The description for the
rpc.server.duration
metric should be:Measures the duration of inbound RPC.
This is defined in the OpenTelemetry semantic convention for this metric.
The text was updated successfully, but these errors were encountered: