lib/sentry/rails/configuration.rb in sentry-rails-4.3.4 vs lib/sentry/rails/configuration.rb in sentry-rails-4.4.0.pre.beta.0

- old
+ new

@@ -1,5 +1,9 @@ +require "sentry/rails/tracing/action_controller_subscriber" +require "sentry/rails/tracing/action_view_subscriber" +require "sentry/rails/tracing/active_record_subscriber" + module Sentry class Configuration attr_reader :rails add_post_initialization_callback do @@ -45,13 +49,19 @@ # Some adapters, like sidekiq, already have their own sentry integration. # In those cases, we should skip ActiveJob's reporting to avoid duplicated reports. attr_accessor :skippable_job_adapters + attr_accessor :tracing_subscribers + def initialize @report_rescued_exceptions = true - # TODO: Remove this in 4.2.0 @skippable_job_adapters = [] + @tracing_subscribers = Set.new([ + Sentry::Rails::Tracing::ActionControllerSubscriber, + Sentry::Rails::Tracing::ActionViewSubscriber, + Sentry::Rails::Tracing::ActiveRecordSubscriber + ]) end end end end