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
10.15.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
sentryClient ??= Sentry.init({
dsn: config.sentryDSN,
environment: config.environment,
includeLocalVariables: sentryOptions?.includeLocalVariables ?? true,
})
Steps to Reproduce
- Deploy a NodeJS AWS lambda using Sentry with
includeLocalVariables set to true
- The following will show up in CloudWatch:
2025-09-23T08:09:07.650Z Debugger listening on ws://127.0.0.1:44271/d9491547-4ba5-4a4f-b78f-0c1b424fc39e
2025-09-23T08:09:07.650Z For help, see: https://nodejs.org/en/docs/inspector
Expected Result
includeLocalVariables should be able to capture the local variables without interfering with the application
Actual Result
The lambda will crash either immediately for after a few runs (memory leak?)
REPORT RequestId: 1c21914d-093b-5809-a3aa-f00152357227 Duration: 88045.34 ms Billed Duration: 88046 ms Memory Size: 3072 MB Max Memory Used: 3072 MB Status: error Error Type: Runtime.OutOfMemory
Note: The lambda is configured with 3GB RAM
Additional Context
Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
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
10.15.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
Steps to Reproduce
includeLocalVariablesset to trueExpected Result
includeLocalVariablesshould be able to capture the local variables without interfering with the applicationActual Result
The lambda will crash either immediately for after a few runs (memory leak?)
Note: The lambda is configured with 3GB RAM
Additional Context
Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it.