Module: Datadog::Contrib::SuckerPunch::ExceptionHandler
- Defined in:
- lib/ddtrace/contrib/sucker_punch/exception_handler.rb
Overview
Patches sucker_punch
exception handling
Constant Summary collapse
- METHOD =
->(e, *) { raise(e) }
Class Method Summary collapse
Class Method Details
.patch! ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/ddtrace/contrib/sucker_punch/exception_handler.rb', line 13 def patch! ::SuckerPunch.singleton_class.class_eval do alias_method :__exception_handler, :exception_handler def exception_handler ::Datadog::Contrib::SuckerPunch::ExceptionHandler::METHOD end end end |