Skip to content

fix: improve unnecessary alerts #965

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

Merged
merged 1 commit into from
Mar 22, 2024
Merged

fix: improve unnecessary alerts #965

merged 1 commit into from
Mar 22, 2024

Conversation

glevco
Copy link
Contributor

@glevco glevco commented Mar 1, 2024

Motivation

The failed to download tx alerts currently spams our on-call engineer unnecessarily. There are two places where this can happen, and both generate alerts for different reasons (1a, 1b, 1c and 2a, 2b).

This PR prevents alerts caused by Twisted's CancelledError in case 1, which are not necessary. For case 2, we simply improve the logs to understand its root cause in a future release.

Acceptance Criteria

  • Remove logging of CancelledError and add traceback to logs.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@glevco glevco self-assigned this Mar 1, 2024
@glevco glevco marked this pull request as ready for review March 1, 2024 16:39
@glevco glevco requested review from jansegre and msbrogli as code owners March 1, 2024 16:39
@glevco glevco force-pushed the fix/improve-alerts branch from 9f143e3 to f70cdaa Compare March 21, 2024 19:51
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.12%. Comparing base (ded7fef) to head (e0bd903).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #965      +/-   ##
==========================================
+ Coverage   85.09%   85.12%   +0.03%     
==========================================
  Files         295      295              
  Lines       22864    22866       +2     
  Branches     3443     3443              
==========================================
+ Hits        19456    19465       +9     
+ Misses       2721     2717       -4     
+ Partials      687      684       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@glevco glevco force-pushed the fix/improve-alerts branch from f70cdaa to fdf1307 Compare March 22, 2024 17:23
@glevco glevco force-pushed the fix/improve-alerts branch from fdf1307 to ee13923 Compare March 22, 2024 19:17
@glevco glevco force-pushed the fix/improve-alerts branch from ee13923 to e0bd903 Compare March 22, 2024 19:20
@glevco glevco merged commit 08590e3 into master Mar 22, 2024
@glevco glevco deleted the fix/improve-alerts branch March 22, 2024 20:27
@jansegre jansegre mentioned this pull request Apr 5, 2024
2 tasks
@jansegre jansegre mentioned this pull request May 8, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants