Class: Atatus::Spies::ActionDispatchSpy Private
- Inherits:
-
Object
- Object
- Atatus::Spies::ActionDispatchSpy
- Defined in:
- lib/atatus/spies/action_dispatch.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #install ⇒ Object private
Instance Method Details
#install ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/atatus/spies/action_dispatch.rb', line 25 def install if defined?(::ActionDispatch) && defined?(::ActionDispatch::ShowExceptions) ::ActionDispatch::ShowExceptions.class_eval do alias render_exception_without_apm render_exception def render_exception(env, exception) context = Atatus.build_context(rack_env: env, for_type: :error) Atatus.report(exception, context: context, handled: false) render_exception_without_apm env, exception end end end end |