class Sentry::Rails::Configuration

Attributes

report_rescued_exceptions[RW]

Rails catches exceptions in the ActionDispatch::ShowExceptions or ActionDispatch::DebugExceptions middlewares, depending on the environment. When `rails_report_rescued_exceptions` is true (it is by default), Sentry will report exceptions even when they are rescued by these middlewares.

skippable_job_adapters[RW]

Some adapters, like sidekiq, already have their own sentry integration. In those cases, we should skip ActiveJob's reporting to avoid duplicated reports.

tracing_subscribers[RW]

Public Class Methods

new() click to toggle source
# File lib/sentry/rails/configuration.rb, line 56
def initialize
  @report_rescued_exceptions = true
  @skippable_job_adapters = []
  @tracing_subscribers = Set.new([
    Sentry::Rails::Tracing::ActionControllerSubscriber,
    Sentry::Rails::Tracing::ActionViewSubscriber,
    Sentry::Rails::Tracing::ActiveRecordSubscriber
  ])
end