lib/sentry/rails/tracing.rb in sentry-rails-5.5.0 vs lib/sentry/rails/tracing.rb in sentry-rails-5.6.0
- old
+ new
@@ -65,10 +65,10 @@
end
end
end
def self.get_current_transaction
- Sentry.get_current_scope.get_transaction
+ Sentry.get_current_scope.get_transaction if Sentry.initialized?
end
# it's just a container for the extended method
module SentryNotificationExtension
end