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
12 13 14 15 16 17 18 19 20 21 22 |
# 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 |