feat(node): Add shouldHandleError option to fastify error handler
resolves https://github.com/getsentry/sentry-javascript/issues/13197
Aligns fastify error handler with the express one.
- Adds
shouldHandleErrorto allow users to configure if errors should be captured - Makes sure the default
shouldHandleErroronly captures errors for 5xx status codes.
@magnusburton Hi, there might be some communication issue since I'm not working on it. Just looked at the changes.
@AbhiPrasad thanks for taking this on!
Is there anything I can do to help get this shipped?
@lforst is there anything I can do to help get this merged? Thanks!
I was just reminded by this PR - I had accidentally unsubscribed from it. Apologies about the delay, I'm pushing up changes now, let's get this to the finish line.
Sorry about the trouble everyone - totally my fault!
@AbhiPrasad can we get this merged? :D
This got pretty stale, so opened https://github.com/getsentry/sentry-javascript/pull/15771, added a test as well, as well as better docstrings.