Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Node.js] Document which errors are captured by error handlers #12326

Open
mydea opened this issue Jan 14, 2025 · 0 comments
Open

[Node.js] Document which errors are captured by error handlers #12326

mydea opened this issue Jan 14, 2025 · 0 comments

Comments

@mydea
Copy link
Member

mydea commented Jan 14, 2025

SDK

JavaScript SDK

Description

E.g. setupExpressErrorHandler and similar handlers generally ignore errors <500. We should document which errors are captured/ignored by default, as well as how to change this, if necessary.

Suggested Solution

For example, in Express we look at any of the fields status, statusCode, status_code and output.statusCode, and if either of them is set and <500, we will ignore the error. This should be clearly documented somewhere, as well as explaining how a custom shouldHandleError method can be passed in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant