We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e1dc2b commit 80f5998Copy full SHA for 80f5998
exporters/prometheus/src/main/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverter.java
@@ -487,9 +487,7 @@ private Labels convertAttributes(
487
labelNameToValue.putIfAbsent(OTEL_SCOPE_VERSION, scope.getVersion());
488
}
489
String schemaUrl = scope.getSchemaUrl();
490
- if (schemaUrl != null) {
491
- labelNameToValue.putIfAbsent(OTEL_SCOPE_SCHEMA_URL, schemaUrl);
492
- }
+ labelNameToValue.putIfAbsent(OTEL_SCOPE_SCHEMA_URL, schemaUrl == null ? "" : schemaUrl);
493
scope
494
.getAttributes()
495
.forEach(
0 commit comments