Skip to content

feat(tracing): add W3C trace context header support and DeadLetterQueue combinators - #1209

Open
21anaghar wants to merge 1 commit into
Banno:mainfrom
21anaghar:feat/w3c-trace-headers-and-dlq
Open

21anaghar wants to merge 1 commit into
Banno:mainfrom
21anaghar:feat/w3c-trace-headers-and-dlq

Conversation

@21anaghar

Copy link
Copy Markdown

Description

This PR adds support for W3C Trace Context propagation across Kafka records and introduces Dead-Letter Queue (DLQ) diagnostic error routing combinators for consumers.

Changes

  • W3C Trace Context: Added W3CTraceparent and TraceHeaders to inject and extract traceparent and tracestate headers across ProducerRecord and ConsumerRecord.
  • Dead-Letter Queue Routing: Added DeadLetterQueue helpers to format failed records with origin and exception diagnostic headers (x-dlq-original-topic, x-dlq-exception-class, etc.).
  • Unit Tests: Added test suites in TraceHeadersSpec and DeadLetterQueueSpec.

…ue combinators

- Implement W3CTraceparent and TraceHeaders for injecting/extracting W3C trace context across Kafka ProducerRecord and ConsumerRecord
- Add DeadLetterQueue error routing helper to construct diagnostic DLQ records with exception and origin metadata headers
- Add unit test suites in TraceHeadersSpec and DeadLetterQueueSpec
@21anaghar
21anaghar requested a review from a team as a code owner November 19, 2026 04:58

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant