lib/sentry/rails/controller_transaction.rb in sentry-rails-5.17.3 vs lib/sentry/rails/controller_transaction.rb in sentry-rails-5.18.0

- old
+ new

@@ -1,18 +1,20 @@ module Sentry module Rails module ControllerTransaction + SPAN_ORIGIN = 'auto.view.rails'.freeze + def self.included(base) base.prepend_around_action(:sentry_around_action) end private def sentry_around_action if Sentry.initialized? transaction_name = "#{self.class}##{action_name}" Sentry.get_current_scope.set_transaction_name(transaction_name, source: :view) - Sentry.with_child_span(op: "view.process_action.action_controller", description: transaction_name) do |child_span| + Sentry.with_child_span(op: "view.process_action.action_controller", description: transaction_name, origin: SPAN_ORIGIN) do |child_span| if child_span begin result = yield ensure child_span.set_http_status(response.status)