Skip to content

ref: Add KafkaProducer error handling and metrics to AsyncKafkaProducer - #575

Merged
lvthanh03 merged 1 commit into
mainfrom
tony/align-asynckafkaproducer
Sep 22, 2026
Merged

lvthanh03 merged 1 commit into
mainfrom
tony/align-asynckafkaproducer

Conversation

@lvthanh03

@lvthanh03 lvthanh03 commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

KafkaProducer already preserves typed Kafka errors and records delivery success/failure metrics with topic labels. AsyncKafkaProducer still converts Kafka errors into string failures and omits success metrics and topic labels on errors.

This PR brings the same behaviour to AsyncKafkaProducer:

  • Preserve typed Kafka errors for enqueue and delivery failures
  • Record successful deliveries and include topic labels on failures (shared metrics helper fn between both producers)

Refs STREAM-1840

@lvthanh03
lvthanh03 requested review from a team as code owners September 21, 2026 21:04
@linear-code

linear-code Bot commented Sep 22, 2026

Copy link
Copy Markdown

STREAM-1840

@lvthanh03
lvthanh03 merged commit f9153c1 into main Sep 22, 2026
23 checks passed
@lvthanh03
lvthanh03 deleted the tony/align-asynckafkaproducer branch September 22, 2026 20:29
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