Skip to content

Commit 0d04d1e

Browse files
committed
1 parent 10f4d6e commit 0d04d1e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/distro/smoke-tests/src/test/java/com/example/javaagent/smoketest/SpringBootSmokeTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void springBootSmokeTestOnJDK() throws IOException, InterruptedException
5252
Assertions.assertEquals(1, countSpansByName(traces, "WebController.withSpan"));
5353
Assertions.assertEquals(2, countSpansByAttributeValue(traces, "custom", "demo"));
5454
Assertions.assertNotEquals(
55-
0, countResourcesByValue(traces, "telemetry.auto.version", currentAgentVersion));
55+
0, countResourcesByValue(traces, "telemetry.distro.version", currentAgentVersion));
5656
Assertions.assertNotEquals(0, countResourcesByValue(traces, "custom.resource", "demo"));
5757

5858
stopTarget();

examples/extension/src/test/java/com/example/javaagent/smoketest/SpringBootIntegrationTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private void testAndVerify() throws IOException, InterruptedException {
7676
Assertions.assertEquals(1, countSpansByName(traces, "WebController.withSpan"));
7777
Assertions.assertEquals(2, countSpansByAttributeValue(traces, "custom", "demo"));
7878
Assertions.assertNotEquals(
79-
0, countResourcesByValue(traces, "telemetry.auto.version", currentAgentVersion));
79+
0, countResourcesByValue(traces, "telemetry.distro.version", currentAgentVersion));
8080
Assertions.assertNotEquals(0, countResourcesByValue(traces, "custom.resource", "demo"));
8181
}
8282
}

smoke-tests/src/test/groovy/io/opentelemetry/smoketest/GrpcSmokeTest.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class GrpcSmokeTest extends SmokeTest {
5151
countSpansByName(traces, 'opentelemetry.proto.collector.trace.v1.TraceService/Export') == 1
5252
countSpansByName(traces, 'TestService.withSpan') == 1
5353

54-
[currentAgentVersion] as Set == findResourceAttribute(traces, "telemetry.auto.version")
54+
[currentAgentVersion] as Set == findResourceAttribute(traces, "telemetry.distro.version")
5555
.map { it.stringValue }
5656
.collect(toSet())
5757

smoke-tests/src/test/groovy/io/opentelemetry/smoketest/QuarkusSmokeTest.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class QuarkusSmokeTest extends SmokeTest {
4343
countSpansByName(traces, 'GET /hello') == 1
4444
countSpansByName(traces, 'HelloResource.hello') == 1
4545

46-
[currentAgentVersion] as Set == findResourceAttribute(traces, "telemetry.auto.version")
46+
[currentAgentVersion] as Set == findResourceAttribute(traces, "telemetry.distro.version")
4747
.map { it.stringValue }
4848
.collect(toSet())
4949

smoke-tests/src/test/groovy/io/opentelemetry/smoketest/SpringBootSmokeTest.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class SpringBootSmokeTest extends SmokeTest {
6060
.allMatch { it.attributesList.stream().map { it.key }.collect(toSet()).containsAll(["thread.id", "thread.name"]) }
6161

6262
then: "correct agent version is captured in the resource"
63-
[currentAgentVersion] as Set == findResourceAttribute(traces, "telemetry.auto.version")
63+
[currentAgentVersion] as Set == findResourceAttribute(traces, "telemetry.distro.version")
6464
.map { it.stringValue }
6565
.collect(toSet())
6666

0 commit comments

Comments
 (0)