Skip to content

Commit

Permalink
update to use the latest semconv: https://opentelemetry.io/docs/specs…
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Dec 11, 2023
1 parent 10f4d6e commit 0d04d1e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void springBootSmokeTestOnJDK() throws IOException, InterruptedException
Assertions.assertEquals(1, countSpansByName(traces, "WebController.withSpan"));
Assertions.assertEquals(2, countSpansByAttributeValue(traces, "custom", "demo"));
Assertions.assertNotEquals(
0, countResourcesByValue(traces, "telemetry.auto.version", currentAgentVersion));
0, countResourcesByValue(traces, "telemetry.distro.version", currentAgentVersion));
Assertions.assertNotEquals(0, countResourcesByValue(traces, "custom.resource", "demo"));

stopTarget();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private void testAndVerify() throws IOException, InterruptedException {
Assertions.assertEquals(1, countSpansByName(traces, "WebController.withSpan"));
Assertions.assertEquals(2, countSpansByAttributeValue(traces, "custom", "demo"));
Assertions.assertNotEquals(
0, countResourcesByValue(traces, "telemetry.auto.version", currentAgentVersion));
0, countResourcesByValue(traces, "telemetry.distro.version", currentAgentVersion));
Assertions.assertNotEquals(0, countResourcesByValue(traces, "custom.resource", "demo"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class GrpcSmokeTest extends SmokeTest {
countSpansByName(traces, 'opentelemetry.proto.collector.trace.v1.TraceService/Export') == 1
countSpansByName(traces, 'TestService.withSpan') == 1

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class QuarkusSmokeTest extends SmokeTest {
countSpansByName(traces, 'GET /hello') == 1
countSpansByName(traces, 'HelloResource.hello') == 1

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SpringBootSmokeTest extends SmokeTest {
.allMatch { it.attributesList.stream().map { it.key }.collect(toSet()).containsAll(["thread.id", "thread.name"]) }

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

Expand Down

0 comments on commit 0d04d1e

Please sign in to comment.