Skip to content

Commit ec2ac16

Browse files
committed
WIP
1 parent c282536 commit ec2ac16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry-rails/lib/sentry/rails/tracing/active_record_subscriber.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ class ActiveRecordSubscriber < AbstractSubscriber
2323

2424
class << self
2525
def subscribe!
26-
subscribe_to_event(EVENT_NAMES) do |event_name, duration, payload|
27-
record_query_source = SUPPORT_SOURCE_LOCATION && Sentry.configuration.rails.enable_db_query_source
28-
query_source_threshold = Sentry.configuration.rails.db_query_source_threshold_ms
26+
record_query_source = SUPPORT_SOURCE_LOCATION && Sentry.configuration.rails.enable_db_query_source
27+
query_source_threshold = Sentry.configuration.rails.db_query_source_threshold_ms
2928

29+
subscribe_to_event(EVENT_NAMES) do |event_name, duration, payload|
3030
next if EXCLUDED_EVENTS.include? payload[:name]
3131

3232
record_on_current_span(

0 commit comments

Comments
 (0)