Skip to content
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

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

iambriccardo
Copy link
Member

@iambriccardo iambriccardo commented Jan 21, 2025

This PR adds a better error message for Kafka failures.

#skip-changelog

@iambriccardo iambriccardo marked this pull request as ready for review January 21, 2025 13:12
@iambriccardo iambriccardo requested a review from a team as a code owner January 21, 2025 13:12
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, thiserror::Error)]
#[derive(Debug, thiserror::Error)]
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member

@jjbayer jjbayer left a 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

@iambriccardo
Copy link
Member Author

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).

@iambriccardo iambriccardo merged commit 7f4d035 into master Jan 21, 2025
28 checks passed
@iambriccardo iambriccardo deleted the riccardo/feat/improve-error-message branch January 21, 2025 14:37
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.

3 participants