Skip to content

Commit 88737d8

Browse files
committed
remove option to keep scope info metric
1 parent 50b9b3c commit 88737d8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

exporters/prometheus/src/test/java/io/opentelemetry/exporter/prometheus/PrometheusMetricReaderTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,14 @@ void addResourceAttributesWorks() throws IOException {
10901090
assertThat(toOpenMetrics(reader.collect())).isEqualTo(expected);
10911091
}
10921092

1093+
@SuppressWarnings("deprecation") // test deprecated constructor
1094+
@Test
1095+
void deprecatedConstructor() {
1096+
assertThat(new PrometheusMetricReader(false, null))
1097+
.usingRecursiveComparison()
1098+
.isEqualTo(new PrometheusMetricReader(null));
1099+
}
1100+
10931101
/**
10941102
* Unfortunately there is no easy way to use {@link TestClock} for Exemplar timestamps. Test if
10951103
* {@code expected} equals {@code actual} but {@code <timestamp>} matches arbitrary timestamps.

0 commit comments

Comments
 (0)