Skip to content

Commit 7b72a52

Browse files
authored
Fix collector integration test (#7545)
1 parent 6df4baf commit 7b72a52

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,13 @@ void endToEnd() {
179179
NumberDataPoint requestTotalDataPoint = requestTotalSum.getDataPoints(0);
180180
assertThat(requestTotalDataPoint.getAsDouble()).isEqualTo(3.0);
181181
assertThat(requestTotalDataPoint.getAttributesList())
182-
.containsExactlyInAnyOrder(
183-
stringKeyValue("animal", "bear"),
184-
// Scope name and version are serialized as attributes to disambiguate metrics with the
185-
// same name in different scopes
186-
stringKeyValue("otel_scope_name", "test"),
187-
stringKeyValue("otel_scope_version", "1.0.0"));
182+
.containsExactlyInAnyOrder(stringKeyValue("animal", "bear"));
183+
// Scope name and version are serialized as attributes to disambiguate metrics with the
184+
// same name in different scopes
185+
// TODO: potentially add these back or remove entirely, see
186+
// https://github.com/open-telemetry/opentelemetry-java/issues/7544
187+
// stringKeyValue("otel_scope_name", "test"),
188+
// stringKeyValue("otel_scope_version", "1.0.0"));
188189
}
189190

190191
private static KeyValue stringKeyValue(String key, String value) {

0 commit comments

Comments
 (0)