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.49.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.48.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.47.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.46.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.45.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.44.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.43.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.42.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.41.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ls-trace-0.2.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.40.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.39.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.38.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.37.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.36.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ls-trace-0.1.2 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.35.2 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.35.1 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.35.0 lib/ddtrace/contrib/sucker_punch/exception_handler.rb
ddtrace-0.34.2 lib/ddtrace/contrib/sucker_punch/exception_handler.rb