Integration Options
Learn about configuring integrations.
rails.report_rescued_exceptions
Rails catches exceptions in the ActionDispatch::ShowExceptions or ActionDispatch::DebugExceptions middlewares, 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 false:
config.rails.report_rescued_exceptions = false
config.rails.report_rescued_exceptions = false
rails.skippable_job_adapters
Use this option to disable Active Job error reporting, tracing, and context propagation for an adapter. Queue-specific integrations for Sidekiq, Delayed Job, and Resque add their adapters automatically to prevent duplicate instrumentation.
config.rails.skippable_job_adapters = ["ActiveJob::QueueAdapters::MyAdapter"]
config.rails.skippable_job_adapters = ["ActiveJob::QueueAdapters::MyAdapter"]
rails.active_job_propagate_traces
Controls whether Sentry connects Active Job execution to the trace that enqueued it. The default is true. Disabling this option still records enqueue spans and job execution transactions, but they won't be connected.
config.rails.active_job_propagate_traces = false
config.rails.active_job_propagate_traces = false
rails.active_job_report_on_retry_error
By default, Sentry reports an Active Job failure after all retry_on attempts are exhausted. Set this option to true to report every failed attempt.
config.rails.active_job_report_on_retry_error = true
config.rails.active_job_report_on_retry_error = true
rails.tracing_subscribers
Tracing subscribers are responsible for capturing tracing spans from Rails instrumentation. The default subscribers are:
Sentry::Rails::Tracing::ActionViewSubscriberSentry::Rails::Tracing::ActiveRecordSubscriberSentry::Rails::Tracing::ActiveStorageSubscriber
# you can add a new subscriber
config.rails.tracing_subscribers << MySubscriber
# or replace the set completely
config.rails.tracing_subscribers = [MySubscriber]
# you can add a new subscriber
config.rails.tracing_subscribers << MySubscriber
# or replace the set completely
config.rails.tracing_subscribers = [MySubscriber]
delayed_job.report_after_job_retries
sentry-delayed_job captures exceptions whenever they occur in a job execution. You can make it wait until the retry is exhausted. Default is false.
config.delayed_job.report_after_job_retries = true
config.delayed_job.report_after_job_retries = true
sidekiq.report_after_job_retries
sentry-sidekiq captures exceptions whenever they occur in a job execution. You can make it wait until the retry is exhausted. Default is false.
config.sidekiq.report_after_job_retries = true
config.sidekiq.report_after_job_retries = true
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").