Skip to content

fix: handle message too large error on kafka client and emit metric#15

Merged
siddhanta-rath merged 6 commits into
mainfrom
add-kafka-error
Aug 21, 2025
Merged

fix: handle message too large error on kafka client and emit metric#15
siddhanta-rath merged 6 commits into
mainfrom
add-kafka-error

Conversation

@siddhanta-rath

Copy link
Copy Markdown
Member

No description provided.

@siddhanta-rath siddhanta-rath requested a review from cpramik August 21, 2025 11:38
@siddhanta-rath siddhanta-rath self-assigned this Aug 21, 2025
Comment thread publisher/kafka.go

case errLargeMessageSize:
errors[order] = fmt.Errorf("%v %s", err, topic)
metrics.Increment("kafka_unknown_topic_failure_total", fmt.Sprintf("topic=%s,event_type=%s,conn_group=%s", topic, event.Type, connGroup))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metric should be: kafka_error
with tags: unknown_topic, message_too_large

@siddhanta-rath siddhanta-rath merged commit 5b005c0 into main Aug 21, 2025
6 checks passed
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