-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(kafka): Add better error message #4464
Conversation
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, thiserror::Error)] | ||
#[derive(Debug, thiserror::Error)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you removing these bounds for a specific reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They seemed to be unused and caused problems if I want to embed String
inside the Kafka
error type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change necessary? The sentry error already contains the following information:
TopicError: failed to validate the topic with name snuba-ourlogs: RD_KAFKA_RESP_ERR_UNKNOWN_TOPIC_OR_PART
It was to have it in the logs, without having to go on Sentry (easier for SREs). |
This PR adds a better error message for Kafka failures.
#skip-changelog