-
Notifications
You must be signed in to change notification settings - Fork 40
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
Unwraps Sidekiq::JobRetry::Handled
errors
#185
Conversation
This means the inner exception is reported to Raygun, with a tag `sidekiq_retry` of "true". Also adds a config setting to disable this behaviour and reporting of retried Sidekiq jobs (`config.track_retried_sidekiq_jobs` defaults to true)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the change in itself looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good as well. Left a question regarding the default setting.
@@ -143,7 +146,8 @@ def initialize | |||
breadcrumb_level: :info, | |||
record_raw_data: false, | |||
send_in_background: false, | |||
error_report_send_timeout: 10 | |||
error_report_send_timeout: 10, | |||
track_retried_sidekiq_jobs: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is true
a good default value for this? I am not sure how annoying it is to have retries reported, but it is good that it can be disabled if required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so - rationale being it's better to log more errors initially and then turn off any that are noisy rather than silently swallow them
This means the inner exception is reported to Raygun, with a tag
sidekiq_retry
of "true".Also adds a config setting to disable this behaviour and reporting of retried Sidekiq jobs (
config.track_retried_sidekiq_jobs
defaults to true)