-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
sentry-rails 4.3.0 triggers endless series of transaction traces when using Sentry::SendEventJob #1348
Comments
@anderscarling thanks for reporting this, we've released |
@st0012 I just tried to update the sentry-rails gem to 4.3.1 and the erros still remain. I have the same config @anderscarling showed in the description. Here is the sentry error. We are holding onto the 4.2.2 version |
@wladimirgramacho do you still receive transactions of
can you help me confirm the theory by setting this:
and see
|
@anderscarling @wladimirgramacho sorry I just found out that the PR was missed from the |
sorry for delay, the original fix has been released in @wladimirgramacho please let me know if you still see the same problem after the upgrade 🙂 |
@st0012 We have just upgraded and the errors happened again 😕 The error that happens is due to the |
It seems to work as expected for me now, so could be a different issue. |
@wladimirgramacho the fix is on Sentry.init do |config|
config.excluded_exceptions << "Sentry::ExternalError" # TODO: Remove this line after upgrading sentry-ruby
end |
Describe the bug
Submitting an error using Sentry::SendEventJob will cause an infinite series of transaction traces to be submitted to sentry.
Error goes away when appending relevant lines in Sentry::Rails::ActiveJobExtensions#capture_and_reraise_with_sentry (those added in #1304) with
unless job.class == Sentry::SendEventJob
.To Reproduce
Setup sentry with:
Cause an exception to be reported.
Expected behavior
Sentry::SendEventJob should report the error, then do no more work.
Actual behavior
For each run of Sentry::SendEventJob a transaction trace will be created, which will trigger another Sentry::SendEventJob to submit the transaction. This will repeat forever.
Environment
The text was updated successfully, but these errors were encountered: