lib/sentry/rails/tracing.rb in sentry-rails-4.7.3 vs lib/sentry/rails/tracing.rb in sentry-rails-4.8.0
- old
+ new
@@ -19,10 +19,11 @@
# need to avoid duplicated subscription
return if @subscribed
subscribers.each do |subscriber|
subscriber.subscribe!
- subscribed_tracing_events << subscriber::EVENT_NAME
+ @subscribed_tracing_events ||= []
+ @subscribed_tracing_events += subscriber::EVENT_NAMES
end
@subscribed = true
end