class ElasticAPM::Injectors::ActionDispatchInjector

@api private

def install

def install
  ::ActionDispatch::ShowExceptions.class_eval do
    alias render_exception_without_apm render_exception
    def render_exception(env, exception)
      ElasticAPM.report(exception)
      render_exception_without_apm env, exception
    end
  end
end

def render_exception(env, exception)

def render_exception(env, exception)
  ElasticAPM.report(exception)
  render_exception_without_apm env, exception
end