Sha256: 51e9deee1692f8681dd2d9e8f0e4272962cec3a3c31477817ed1cd4890cb7a52

Contents?: true

Size: 330 Bytes

Versions: 9

Compression:

Stored size: 330 Bytes

Contents

module Raven
  class Rails
    module ControllerTransaction
      def self.included(base)
        base.around_action do |controller, block|
          Raven.context.transaction.push "#{controller.class}##{controller.action_name}"
          block.call
          Raven.context.transaction.pop
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
sentry-raven-2.10.0 lib/raven/integrations/rails/controller_transaction.rb
sentry-raven-2.9.0 lib/raven/integrations/rails/controller_transaction.rb
sentry-raven-2.8.0 lib/raven/integrations/rails/controller_transaction.rb
sentry-raven-2.7.4 lib/raven/integrations/rails/controller_transaction.rb
sentry-raven-2.7.3 lib/raven/integrations/rails/controller_transaction.rb
jones-gem-2.7.2 lib/raven/integrations/rails/controller_transaction.rb
alec-gem-2.7.2 lib/raven/integrations/rails/controller_transaction.rb
sentry-raven-2.7.2 lib/raven/integrations/rails/controller_transaction.rb
sentry-raven-2.7.1 lib/raven/integrations/rails/controller_transaction.rb