module Datadog::Contrib::SuckerPunch::ExceptionHandler

Patches `sucker_punch` exception handling

Constants

METHOD

Public Class Methods

__exception_handler()
Alias for: exception_handler
exception_handler() click to toggle source
# File lib/ddtrace/contrib/sucker_punch/exception_handler.rb, line 17
def exception_handler
  ::Datadog::Contrib::SuckerPunch::ExceptionHandler::METHOD
end
Also aliased as: __exception_handler

Public Instance Methods

patch!() click to toggle source
# File lib/ddtrace/contrib/sucker_punch/exception_handler.rb, line 12
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