Skip to content
Merged
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 @@ -36,7 +36,7 @@ tasks {
excludeTestsMatching("WrapperSuppressReceiveSpansTest")
}
jvmArgs("-Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true")
systemProperty("otel.instrumentation.messaging.experimental.capture-headers", "test-message-header")
systemProperty("otel.instrumentation.messaging.experimental.capture-headers", "Test-Message-Header")
}

check {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void testInterceptors() throws InterruptedException {
producerRecord
.headers()
// add header to test capturing header value as span attribute
.add("test-message-header", "test".getBytes(StandardCharsets.UTF_8))
.add("Test-Message-Header", "test".getBytes(StandardCharsets.UTF_8))
// adding baggage header in w3c baggage format
.add(
"baggage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void assertTraces() {
.hasParent(trace.getSpan(0))
.hasAttributesSatisfyingExactly(
equalTo(
stringArrayKey("messaging.header.test_message_header"),
stringArrayKey("messaging.header.Test_Message_Header"),
singletonList("test")),
equalTo(MESSAGING_SYSTEM, "kafka"),
equalTo(MESSAGING_DESTINATION_NAME, SHARED_TOPIC),
Expand All @@ -70,7 +70,7 @@ void assertTraces() {
.hasLinksSatisfying(links -> assertThat(links).isEmpty())
.hasAttributesSatisfyingExactly(
equalTo(
stringArrayKey("messaging.header.test_message_header"),
stringArrayKey("messaging.header.Test_Message_Header"),
singletonList("test")),
equalTo(MESSAGING_SYSTEM, "kafka"),
equalTo(MESSAGING_DESTINATION_NAME, SHARED_TOPIC),
Expand All @@ -87,7 +87,7 @@ void assertTraces() {
.hasLinks(LinkData.create(producerSpanContext.get()))
.hasAttributesSatisfyingExactly(
equalTo(
stringArrayKey("messaging.header.test_message_header"),
stringArrayKey("messaging.header.Test_Message_Header"),
singletonList("test")),
equalTo(MESSAGING_SYSTEM, "kafka"),
equalTo(MESSAGING_DESTINATION_NAME, SHARED_TOPIC),
Expand Down
Loading