module ElasticAPM::Spies::ActionDispatchSpy::Ext

def render_exception(env, exception)

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