Skip to content

Commit

Permalink
Merge pull request Aiven-Open#990 from Aiven-Open/kmichel-cleanup-errors
Browse files Browse the repository at this point in the history
fix: don't send all aiokafka log.error to sentry
  • Loading branch information
jjaakola-aiven authored Nov 13, 2024
2 parents ba66344 + 0e8e831 commit 1ea3ad5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/karapace/sentry/sentry_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def _initialize_sentry(self) -> None:
# Don't send library logged errors to Sentry as there is also proper return value or raised exception to calling code
from sentry_sdk.integrations.logging import ignore_logger

ignore_logger("aiokafka")
ignore_logger("aiokafka.*")
ignore_logger("kafka")
ignore_logger("kafka.*")

Expand Down

0 comments on commit 1ea3ad5

Please sign in to comment.