There was an error while loading. Please reload this page.
1 parent 874633d commit 3e12c94Copy full SHA for 3e12c94
1 file changed
opentelemetry-prometheus/src/lib.rs
@@ -422,6 +422,10 @@ fn get_scope_labels(scope: &InstrumentationScope) -> Vec<LabelPair> {
422
423
let mut attr_labels = BTreeMap::<String, Vec<String>>::new();
424
for kv in scope.attributes() {
425
+ if matches!(kv.key.as_str(), "name" | "version" | "schema_url") {
426
+ continue;
427
+ }
428
+
429
let label_name = utils::sanitize_prom_kv(&format!("{SCOPE_ATTRIBUTE_PREFIX}{}", kv.key));
430
if RESERVED_SCOPE_LABELS.contains(&label_name.as_str()) {
431
continue;
0 commit comments