Sha256: a315bd3619c80f28eb2afce63a18f962c67c29b5a30033fb721cc7e410d93c03

Contents?: true

Size: 420 Bytes

Versions: 5

Compression:

Stored size: 420 Bytes

Contents

module Sentry
  module Rails
    class CaptureExceptions < Sentry::Rack::CaptureExceptions
      private

      def collect_exception(env)
        super || env["action_dispatch.exception"] || env["sentry.rescued_exception"]
      end

      def transaction_op
        "rails.request".freeze
      end

      def capture_exception(exception)
        Sentry::Rails.capture_exception(exception)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sentry-rails-4.1.6 lib/sentry/rails/capture_exceptions.rb
sentry-rails-4.1.5 lib/sentry/rails/capture_exceptions.rb
sentry-rails-4.1.4 lib/sentry/rails/capture_exceptions.rb
sentry-rails-4.1.3 lib/sentry/rails/capture_exceptions.rb
sentry-rails-4.1.2 lib/sentry/rails/capture_exceptions.rb