mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
Partially resolves https://github.com/open-telemetry/opentelemetry-collector/issues/14814 (removes duplicated attributes) Internal collector metrics exposed with Prometheus by default have duplicated service labels (`service_name`, `service_instance_id`, `service_version`) on every datapoint while the same service attributes emitted as `target_info` labels ending up as proper resource attributes which the metrics scraped with Prometheus receiver (`service.name`, `service.instance.id`, `service. version`) The duplicated labels on every internal metric datapoint were added for OpenCensus backwards compatibility in #9029 long time ago. Given that now the `target_info` is correctly translated to Resource attributes and the duplication leads to https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/47011, it should be good time to remove it. --------- Co-authored-by: Yang Song <[email protected]>