Skip to content

Commit 6c93d4c

Browse files
zeitlingertrask
andcommitted
Update exporters/prometheus/src/main/java/io/opentelemetry/exporter/prometheus/internal/PrometheusComponentProvider.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
1 parent a38692e commit 6c93d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exporters/prometheus/src/main/java/io/opentelemetry/exporter/prometheus/internal/PrometheusComponentProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public MetricReader create(DeclarativeConfigProperties config) {
4848
}
4949

5050
Boolean withoutScopeInfo = config.getBoolean("without_scope_info");
51-
if (Objects.equals(withoutScopeInfo, true)) {
51+
if (Boolean.TRUE.equals(withoutScopeInfo)) {
5252
prometheusBuilder.setOtelScopeMode(OtelScopeMode.LABELS_ONLY);
5353
}
5454

0 commit comments

Comments
 (0)