File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
sentry-rails/lib/sentry/rails Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 66require "sentry/rails/tracing/active_storage_subscriber"
77require "sentry/rails/tracing/active_support_subscriber"
88
9+ require "sentry/rails/log_subscribers/active_record_subscriber"
10+ require "sentry/rails/log_subscribers/action_controller_subscriber"
11+
912module Sentry
1013 class Configuration
1114 attr_reader :rails
@@ -193,9 +196,14 @@ class StructuredLoggingConfiguration
193196 # @return [Hash<Symbol, Class>]
194197 attr_accessor :subscribers
195198
199+ DEFAULT_SUBSCRIBERS = {
200+ active_record : Sentry ::Rails ::LogSubscribers ::ActiveRecordSubscriber ,
201+ action_controller : Sentry ::Rails ::LogSubscribers ::ActionControllerSubscriber
202+ } . freeze
203+
196204 def initialize
197205 @enabled = false
198- @subscribers = { }
206+ @subscribers = DEFAULT_SUBSCRIBERS . dup
199207 end
200208 end
201209 end
You can’t perform that action at this time.
0 commit comments