add Sidekiq monitoring for Datadog and Honeybadger (#5270)

This commit is contained in:
Molly Struve 2019-12-30 10:16:25 -06:00 committed by GitHub
parent 9973d5a7fc
commit 45b156be86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -7,6 +7,7 @@ Datadog.configure do |c|
c.tracer partial_flush: true
c.tracer priority_sampling: true
c.use :delayed_job
c.use :sidekiq
c.use :redis
c.use :rails
c.use :http

View file

@ -11,6 +11,7 @@ Honeybadger.configure do |config|
]
config.request.filter_keys += %w[authorization]
config.delayed_job.attempt_threshold = 10
config.sidekiq.attempt_threshold = 10
config.before_notify do |notice|
notice.fingerprint = if notice.error_message&.include?("SIGTERM") && notice.component&.include?("fetch_all_rss")