Skip to content

Commit eb54740

Browse files
Merge branch '1.10.x'
2 parents aaa6fc2 + b1a76f3 commit eb54740

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

implementations/micrometer-registry-otlp/src/test/java/io/micrometer/registry/otlp/OTelCollectorIntegrationTest.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,16 @@ void collectorShouldExportMetrics() throws Exception {
7676
whenPrometheusScraped().then().body(
7777
containsString("{job=\"test\",service_name=\"test\",telemetry_sdk_language=\"java\",telemetry_sdk_name=\"io.micrometer\""),
7878

79-
matchesPattern("(?s)^.*test_counter\\{.+} 42\\.0\\n.*$"),
79+
matchesPattern("(?s)^.*test_counter_total\\{.+} 42\\.0\\n.*$"),
8080
matchesPattern("(?s)^.*test_gauge\\{.+} 12\\.0\\n.*$"),
8181

82-
matchesPattern("(?s)^.*test_timer_count\\{.+} 1\\n.*$"),
83-
// TODO: this should be 123ms (0.123) not 123s (123)
82+
matchesPattern("(?s)^.*test_timer_milliseconds_count\\{.+} 1\\n.*$"),
83+
// TODO: Earlier this was 123s (123), should have been 123ms (0.123)
8484
// see: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/18903
85-
matchesPattern("(?s)^.*test_timer_sum\\{.+} 123\\.0\\n.*$"),
86-
matchesPattern("(?s)^.*test_timer_bucket\\{.+,le=\"\\+Inf\"} 1\\n.*$"),
85+
// it seems units are still not converted but at least the unit is in the name now (breaking change)
86+
// see: https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/20519
87+
matchesPattern("(?s)^.*test_timer_milliseconds_sum\\{.+} 123\\.0\\n.*$"),
88+
matchesPattern("(?s)^.*test_timer_milliseconds_bucket\\{.+,le=\"\\+Inf\"} 1\\n.*$"),
8789

8890
matchesPattern("(?s)^.*test_distributionsummary_count\\{.+} 1\\n.*$"),
8991
matchesPattern("(?s)^.*test_distributionsummary_sum\\{.+} 24\\.0\\n.*$"),

0 commit comments

Comments
 (0)