Sha256: 1c4c8e85b7406927d162c6a7761ef5b0021e3f0db0151b19208de5c72597fd29

Contents?: true

Size: 574 Bytes

Versions: 91

Compression:

Stored size: 574 Bytes

Contents

require 'sucker_punch'

module Datadog
  module Contrib
    module SuckerPunch
      # Patches `sucker_punch` exception handling
      module ExceptionHandler
        METHOD = ->(e, *) { raise(e) }

        module_function

        def patch!
          ::SuckerPunch.class_eval do
            class << self
              alias_method :__exception_handler, :exception_handler

              def exception_handler
                ::Datadog::Contrib::SuckerPunch::ExceptionHandler::METHOD
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

91 entries across 91 versions & 2 rubygems

Version Path
ddtrace-0.34.1 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.34.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.33.1 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.33.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.32.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.31.1 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.31.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.30.1 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.30.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.29.1 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.26.1 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ls-trace-0.1.1 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.29.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.28.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.27.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.26.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.25.1 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.25.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.24.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.23.3 lib/ddtrace/contrib/sucker_punch/exception_handler.rb