Module: ElasticAPM::Spies::ActionDispatchSpy::Ext Private

Defined in:
lib/elastic_apm/spies/action_dispatch.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#render_exception(env, exception) ⇒ 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.



27
28
29
30
31
32
# File 'lib/elastic_apm/spies/action_dispatch.rb', line 27

def render_exception(env, exception)
  context = ElasticAPM.build_context(rack_env: env, for_type: :error)
  ElasticAPM.report(exception, context: context, handled: false)

  super(env, exception)
end