dorbel-tech / dorbel-shared

dorbel shared dependencies used in dorbel-app
0 stars 1 forks source link

Report error call-stack to New Relic #48

Closed virtser closed 7 years ago

virtser commented 7 years ago

Not happy with the way NewRelic displays error info - https://rpm.newrelic.com/accounts/1433338/applications/27979543/traced_errors/13af8f9e-e853-11e6-8137-f8bc12425498_1054_2142

If we want that we probably need to catch the stack trace (should be happening in error-handler.js anyway) and send it to new relic

https://docs.newrelic.com/docs/agents/nodejs-agent/supported-features/nodejs-agent-api#noticeError

See example how to do it here: http://stackoverflow.com/questions/26964009/detecting-process-crashes-with-new-relic-in-nodejs