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:

Copied
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.

Copied
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.

Copied
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.

Copied
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::ActionViewSubscriber
  • Sentry::Rails::Tracing::ActiveRecordSubscriber
  • Sentry::Rails::Tracing::ActiveStorageSubscriber
Copied
# 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.

Copied
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.

Copied
config.sidekiq.report_after_job_retries = true
Was this helpful?
Help improve this content
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").