I have a custom error handler that leverages
.noticeError(err, customParameters) as well as sends a response to the client with a custom error message. The problem is this error is then logged twice in New Relic APM as follows:
.noticeError()call, which contains all the useful information about the error
- the 40X or 50X sent to the client, which does not contain any useful information
I would like to be able to either tell New Relic to ignore the second error if
.noticeError() was called or have New Relic do that automatically.
This issue has already been opened here, but all the New Relic accounts that responded have been disabled so not sure if anyone is actually tracking to it.
New Relic edit
- I want this, too
- I have more info to share (reply below)
- I have a solution for this
We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.