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
Duplicate reporting for Sidekiq errors #1731
Comments
Hi thanks for reporting this. This is caused by the Rails 7 feature support we recently added in #1705 I've explained the problem in this comment and proposed an API that I think would be the best solution. But that could take a while to be addressed and released though (if it's accepted). So I'll also think about other workaround/short-term solutions to solve this. The worst case would be to revert #1705 . |
@st0012 sorry I don't understand all the details so a couple of questions.
|
Because in this case the order is different. The exception was first caught by the
Regarding this point, I've also explained it in https://github.com/rails/rails/pull/43625/files#r810051167 |
@st0012 thx I think I get it now. This would also be consistent with other SDKs which have This still would not fix the Sidekiq order precedence problem though. |
I've upgraded to @lostie: If you've upgraded to |
We are also still seing these after upgrading to 5.1.1 |
@jasonrudolph @micke thanks for reporting. I've done a bit more investigation and reported it in rails/rails#43625 (comment). |
After consulting Sidekiq's author Mike, I think ignoring |
FYI, I'll change the error reporter integration in |
Issue Description
After the update to version
5.1.0
I started to getSidekiq::JobRetry::Skip
errors in Sentry. After close examination, I found that for each of these errors I also had their cause reported as a separate error in Sentry.It seems the Sidekiq error handler:
sentry-ruby/sentry-sidekiq/lib/sentry-sidekiq.rb
Line 28 in 623d046
is creating the sentry error for the cause, and the new error subscription for version
5.1.0
:sentry-ruby/sentry-rails/lib/sentry/rails/railtie.rb
Line 123 in 623d046
is creating the sentry error for the
Sidekiq::JobRetry::Skip
Reproduction Steps
Use the
5.1.0
version of Sentry and raise an error within a sidekiq job.Expected Behavior
The raised error should be logged in Sentry
Actual Behavior
Two errors are logged in sentry:
Sidekiq::JobRetry::Skip
Ruby Version
3.1.0
SDK Version
5.1.0
Integration and Its Version
Rails (7.0.2) + Sidekiq (6.4.1)
Sentry Config
I don't have any custom error handling configured
The text was updated successfully, but these errors were encountered: