You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to an open Node.js issue, we are currently unable to capture local variables for unhandled errors when using JavaScript modules (ESM).
To get around this, you'll need to explicity call Sentry.captureException in a try - catch if you are using ESM.
If you use one of our framework error handlers (setupExpressErrorHandler, setupFastifyErrorHandler) we call captureException in the request middleware, so local variables will be attached in esm.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.26.0
Framework Version
No response
Link to Sentry event
https://visualelectric.sentry.io/share/issue/280ad0165d0b4e7f985ac7c5b26e7069/
Reproduction Example/SDK Setup
I can't see local variables logged in the sentry dashboard for my project.
Minimal example:
Steps to Reproduce
node test.js
on the above exampleExpected Result
I expect to be able to see the values of
someVariable1
andsomeVariable2
in the sentry dashboard for the issue.Actual Result
The text was updated successfully, but these errors were encountered: