opentelemetry-specification icon indicating copy to clipboard operation
opentelemetry-specification copied to clipboard

Record instrumentation_scope attribute in Prometheus export

Open anuraaga opened this issue 2 years ago • 3 comments

Currently, instrumentation_scope is not used in the documentation for converting OTLP metrics to Prometheus. However, because it is part of identity for the OTLP model, it should be added as an attribute. Otherwise, the OTel SDK can record two metric streams with the same name and attributes, but different instrumentation scope, and the prometheus exporter will output them as identical streams causing a failure to scrape.

anuraaga avatar Apr 15 '22 03:04 anuraaga

@open-telemetry/wg-prometheus

anuraaga avatar Apr 15 '22 03:04 anuraaga

Related to #1906.

arminru avatar Apr 15 '22 07:04 arminru

Ah this is mostly a dupe of #1906 so feel free to close this if it makes sense. We need to prioritize it though, while we don't intend to publish Prometheus exporter as stable next month, with metrics going stable we expect a lot of bug reports for this since it's easy to run into.

anuraaga avatar Apr 16 '22 00:04 anuraaga

#2703 should close this.

jack-berg avatar Oct 11 '22 20:10 jack-berg