Sha256: d0d434457596c691ebc476c30d6d80ddf96fee7f24e8c112c51f8b191ec2c701

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

module Sentry
  module Rails
    module ControllerTransaction
      def self.included(base)
        base.prepend_before_action do |controller|
          if Sentry.initialized?
            Sentry.get_current_scope.set_transaction_name("#{controller.class}##{controller.action_name}", source: :view)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sentry-rails-5.7.0 lib/sentry/rails/controller_transaction.rb
sentry-rails-5.6.0 lib/sentry/rails/controller_transaction.rb