[Bug]: Prometheus: Using without_scope_info
breaks with_resource_selector(ResourceSelector::All)
#2858
Labels
without_scope_info
breaks with_resource_selector(ResourceSelector::All)
#2858
What happened?
See title. If you use without scope info, labels from a
Resource
are not applied exported metrics, even if you choseResourceSelector::All
.The problematic bit of code is here: https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-prometheus/src/lib.rs#L324
OpenTelemetry API Version (i.e version of
opentelemetry
crate)0.26
But for the prometheus crate, specifically commit
e911383
because I was on 0.26 of everything else before that crate upgradedRegardless, this code appears unchanged since then
OpenTelemetry SDK Version (i.e version of
opentelemetry_sdk
crate)0.26
What Exporter(s) are you seeing the problem on?
Prometheus
Relevant log output
The text was updated successfully, but these errors were encountered: