config: make Sentry ignore rescued ActiveJob exceptions
For now the Sentry delayed_job integration reports errors that are rescued with `retry_on`. Ignore these errors manually for now. See https://github.com/getsentry/sentry-ruby/issues/1347
This commit is contained in:
parent
6809621eec
commit
ac5303d56d
1 changed files with 9 additions and 0 deletions
|
@ -4,4 +4,13 @@ Sentry.init do |config|
|
|||
config.enabled_environments = ['production']
|
||||
config.breadcrumbs_logger = [:active_support_logger]
|
||||
config.traces_sample_rate = ENV['SENTRY_ENABLED'] == 'enabled' ? 0.001 : nil
|
||||
config.excluded_exceptions += [
|
||||
# Ignore exceptions caught by ActiveJob.retry_on
|
||||
# https://github.com/getsentry/sentry-ruby/issues/1347
|
||||
'Excon::Error::BadRequest',
|
||||
'ActiveStorage::IntegrityError',
|
||||
'VirusScannerJob::FileNotAnalyzedYetError',
|
||||
'TitreIdentiteWatermarkJob::WatermarkFileNotScannedYetError',
|
||||
'APIEntreprise::API::Error::TimedOut'
|
||||
]
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue