Is there way to push NewRelic error manually?

前端 未结 3 1050
时光取名叫无心
时光取名叫无心 2021-02-11 19:26

In our Rails app we rescue most of the exceptions on ApplicationController to give correct API response, but still want to track errors happening using ErrorCollector. Is there

3条回答
  •  孤城傲影
    2021-02-11 20:01

    Not sure if it's recommended way to use, but this works perfectly:

    NewRelic::Agent.agent.error_collector.notice_error( exception )
    

提交回复
热议问题