You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conventional metrics or metrics that have their units included in OpenTelemetry metadata (e.g. metric.WithUnit in Go) SHOULD NOT include the units in the metric name. Units may be included when it provides additional meaning to the metric name. Metrics MUST, above all, be understandable and usable.
To Reproduce
Run Router with otel collector logging:
docker run --name otelcollector -d --rm -v "${PWD}/otel-nobatch-config.yaml":/etc/otelcol/config.yaml -p 4317:4317 otel/opentelemetry-collector
See output below
metrics has _seconds suffix
Metadata doesnt provide units
Expected behavior
A clear and concise description of what you expected to happen.
Metric to not have _seconds suffix, and the units be provided in the opentelemetry metadata
Output
If applicable, add output to help explain your problem.
Describe the bug
Router exposes apollo_router_http_request_duration_seconds via opentelemetry.
Please remove the _seconds from the name and provide it via metrics instead, theres no reason to clutter up the metrics names with the unit suffixes.
https://opentelemetry.io/docs/specs/semconv/general/metrics/#units
Conventional metrics or metrics that have their units included in OpenTelemetry metadata (e.g. metric.WithUnit in Go) SHOULD NOT include the units in the metric name. Units may be included when it provides additional meaning to the metric name. Metrics MUST, above all, be understandable and usable.
To Reproduce
Run Router with otel collector logging:
docker run --name otelcollector -d --rm -v "${PWD}/otel-nobatch-config.yaml":/etc/otelcol/config.yaml -p 4317:4317 otel/opentelemetry-collector
See output below
Expected behavior
A clear and concise description of what you expected to happen.
Metric to not have _seconds suffix, and the units be provided in the opentelemetry metadata
Output
If applicable, add output to help explain your problem.
The text was updated successfully, but these errors were encountered: