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

fix: don't send all aiokafka log.error to sentry #990

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

kmichel-aiven
Copy link
Contributor

@kmichel-aiven kmichel-aiven commented Nov 7, 2024

About this change - What it does

These log events are numerous and costly. When these log.error events are related to real error, they cause exceptions which are still properly handled and recorded by Sentry, no need to also send individual events for all the log.error in addition to the exceptions.

References: #xxxxx

Why this way

The same logic was already applied for the kafka library.

These log events are numerous and costly. When these `log.error` events are
related to real error, they cause exceptions which are still properly handled
and recorded by Sentry, no need to also send individual events for all the
`log.error` in addition to the exceptions. The same logic was already applied
for the `kafka` library.
@kmichel-aiven kmichel-aiven requested review from a team as code owners November 7, 2024 00:42
Copy link

github-actions bot commented Nov 7, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/karapace/backup
  api.py
  cli.py
  src/karapace/sentry
  sentry_client.py
Project Total  

This report was generated by python-coverage-comment-action

Copy link
Contributor

@jjaakola-aiven jjaakola-aiven left a comment

Choose a reason for hiding this comment

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

LGTM

@jjaakola-aiven jjaakola-aiven merged commit 1ea3ad5 into main Nov 13, 2024
9 checks passed
@jjaakola-aiven jjaakola-aiven deleted the kmichel-cleanup-errors branch November 13, 2024 10:50
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