Skip to content

feat(metrics): DLQ produce failures no increment a counter and log instead of panic. - #564

Merged
tryangul merged 1 commit into
mainfrom
rbroughan/dlq-produce-failure-metrics
Sep 1, 2026
Merged

feat(metrics): DLQ produce failures no increment a counter and log instead of panic.#564
tryangul merged 1 commit into
mainfrom
rbroughan/dlq-produce-failure-metrics

Conversation

@tryangul

@tryangul tryangul commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

What

Fix DLQ producer panic + add observability for produce failures.

How

  • Replace .expect() in KafkaDlqProducer::produce() with tracing::error! + arroyo.consumer.dlq.produce_error counter

Other

  • Fix original_partition header — was writing offset instead of partition index

Why

  • DLQ produce failures (e.g. MessageSizeTooLarge) panic, get caught by the JoinHandle, and silently drop the message. 1,467 occurrences on eap-items since May 29.
  • tracing::error! surfaces as a Sentry issue via the sentry-tracing layer. Counter gives DD visibility.

Links

…stead of panicking. Fix partition header bug.
@tryangul
tryangul requested review from a team as code owners September 1, 2026 18:27
@linear-code

linear-code Bot commented Sep 1, 2026

Copy link
Copy Markdown

EAP-737

@tryangul
tryangul merged commit 027e822 into main Sep 1, 2026
23 checks passed
@tryangul
tryangul deleted the rbroughan/dlq-produce-failure-metrics branch September 1, 2026 18:33
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.

2 participants