- Rails catches exceptions in the
ActionDispatch::DebugExceptionsmiddlewares, depending on the environment. By default, Sentry will report exceptions even when they are rescued by these middlewares.
You can disable this by setting it to
- If you don't want to report events from a certain ActiveJob adapter, or you already have a better setup for it, you can use this option to skip ActiveJob reporting on that adapter.
config.rails.skippable_job_adapters = ["ActiveJob::QueueAdapters::MyAdapter"]
- Tracing subscribers are responsible for capturing tracingThe process of logging the events that took place during a request, often across multiple services.spans from Rails instrumentation. The default subscribers are:
# you can add a new subscriber config.rails.tracing_subscribers << MySubscriber # or replace the set completely config.rails.tracing_subscribers = [MySubscriber]
sentry-delayed_jobcaptures exceptions whenever they occur in a job execution. You can make it wait until the retry is exhausted. Default is
config.delayed_job.report_after_job_retries = true
sentry-sidekiqcaptures exceptions whenever they occur in a job execution. You can make it wait until the retry is exhausted. Default is
config.sidekiq.report_after_job_retries = true