Skip to content

Ignore Sidekiq::JobRetry::Handled exception#2337

Merged
solnic merged 3 commits intogetsentry:masterfrom
karlentwistle:ke/ignore-sidekiq-job-handled-exception
Jan 2, 2025
Merged

Ignore Sidekiq::JobRetry::Handled exception#2337
solnic merged 3 commits intogetsentry:masterfrom
karlentwistle:ke/ignore-sidekiq-job-handled-exception

Conversation

@karlentwistle
Copy link
Copy Markdown
Contributor

@karlentwistle karlentwistle commented Jul 3, 2024

Adds Sidekiq::JobRetry::Handled exception to default Sidekiq ignore list.

Sidekiq::JobRetry::Skip exceptions are currently ignored, however, since Sidekiq 7.3.0 shipped, I think Sidekiq::JobRetry::Handled exceptions also need to be ignored.

You can see the full diff between 7.2.4..7.3.0 and I'd particularly like to draw your attention to the changes within lib/sidekiq/job_retry.rb.

You can see in certain scenarios Sidekiq now raises Sidekiq::JobRetry::Handled (7.3.0) instead of Sidekiq::JobRetry::Skip (7.2.4).

Without this change, some customers will see the following in their Sentry Issues after upgrading to Sidekiq 7.3.0.

Screenshot 2024-07-03 at 08 27 40

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.09%. Comparing base (ee37a4a) to head (a38b9f3).
Report is 36 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2337   +/-   ##
=======================================
  Coverage   98.09%   98.09%           
=======================================
  Files         126      126           
  Lines        4723     4723           
=======================================
  Hits         4633     4633           
  Misses         90       90           
Components Coverage Δ
sentry-ruby 98.51% <ø> (ø)
sentry-rails 97.19% <ø> (ø)
sentry-sidekiq 95.45% <100.00%> (ø)
sentry-resque 92.85% <ø> (ø)
sentry-delayed_job 95.65% <ø> (ø)
sentry-opentelemetry 99.31% <ø> (ø)
Files with missing lines Coverage Δ
sentry-sidekiq/lib/sentry/sidekiq/configuration.rb 100.00% <100.00%> (ø)

@natematykiewicz
Copy link
Copy Markdown

+1. I have a bunch of these in my Sentry as well, and they're always next to a second error event that's the actual problem. They can be safely ignored.

@karlentwistle karlentwistle force-pushed the ke/ignore-sidekiq-job-handled-exception branch from ebe45e4 to c3776b4 Compare October 18, 2024 21:43
Copy link
Copy Markdown
Collaborator

@solnic solnic left a comment

Choose a reason for hiding this comment

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

This makes sense. Thank you!

@solnic solnic merged commit 7ad595a into getsentry:master Jan 2, 2025
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.

4 participants