Skip to content

Commit 8f2e5b6

Browse files
committed
pr review
1 parent a8365f5 commit 8f2e5b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exporters/prometheus/src/main/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ MetricSnapshots convert(@Nullable Collection<MetricData> metricDataCollection) {
125125
if (resource == null) {
126126
resource = metricData.getResource();
127127
}
128-
if (otelScopeMode.isScopeInfoEnabled() && !metricData.getInstrumentationScopeInfo().getAttributes().isEmpty()) {
128+
if (otelScopeMode.isScopeInfoEnabled()
129+
&& !metricData.getInstrumentationScopeInfo().getAttributes().isEmpty()) {
129130
scopes.add(metricData.getInstrumentationScopeInfo());
130131
}
131132
}

0 commit comments

Comments
 (0)