Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ void b3MultiPropagation() {
Assert.assertNull(server.getAttributes().get(BAGGAGE_METADATA_ATTR));

// Assert that the expected headers were used
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).contains("X-B3-TraceId"));
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).contains("X-B3-SpanId"));
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).contains("X-B3-Sampled"));
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).stream()
.anyMatch(x -> x.equalsIgnoreCase("X-B3-TraceId")));
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).stream()
.anyMatch(x -> x.equalsIgnoreCase("X-B3-SpanId")));
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).stream()
.anyMatch(x -> x.equalsIgnoreCase("X-B3-Sampled")));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ void b3Propagation() {

// Assert that the expected headers were used
Assert.assertTrue(
server.getAttributes().get(AttributeKey.stringArrayKey("test.propagation.headers")).contains("b3"));
server.getAttributes().get(AttributeKey.stringArrayKey("test.propagation.headers")).stream()
.anyMatch(x -> x.equalsIgnoreCase("b3")));

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ void jaegerPropagation() {
Assert.assertEquals(server.getAttributes().get(BAGGAGE_METADATA_ATTR), "");

// assert that the expected headers were used
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).contains("uber-trace-id"));
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).contains("uberctx-" + BAGGAGE_KEY));
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).stream()
.anyMatch(x -> x.equalsIgnoreCase("uber-trace-id")));
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).stream()
.anyMatch(x -> x.equalsIgnoreCase("uberctx-" + BAGGAGE_KEY)));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ void span() {
Assert.assertEquals(server.getAttributes().get(BAGGAGE_METADATA_ATTR), BAGGAGE_METADATA);

// Assert that the expected headers were used
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).contains("traceparent"));
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).contains("baggage"));
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).stream()
.anyMatch(x -> x.equalsIgnoreCase("traceparent")));
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).stream()
.anyMatch(x -> x.equalsIgnoreCase("baggage")));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ void span() {
Assert.assertNull(server.getAttributes().get(BAGGAGE_METADATA_ATTR));

// Assert that the expected headers were used
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).contains("traceparent"));
Assert.assertTrue(server.getAttributes().get(PROPAGATION_HEADERS_ATTR).stream()
.anyMatch(x -> x.equalsIgnoreCase("traceparent")));
}
}