We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d34e83f commit fda02b3Copy full SHA for fda02b3
exporters/prometheus/src/main/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverter.java
@@ -491,9 +491,7 @@ private Labels convertAttributes(
491
labelNameToValue.putIfAbsent(OTEL_SCOPE_VERSION, scope.getVersion());
492
}
493
String schemaUrl = scope.getSchemaUrl();
494
- if (schemaUrl != null) {
495
- labelNameToValue.putIfAbsent(OTEL_SCOPE_SCHEMA_URL, schemaUrl);
496
- }
+ labelNameToValue.putIfAbsent(OTEL_SCOPE_SCHEMA_URL, schemaUrl == null ? "" : schemaUrl);
497
scope
498
.getAttributes()
499
.forEach(
0 commit comments