diff --git a/packages/node/src/integrations/anr/index.ts b/packages/node/src/integrations/anr/index.ts index b71bdfa49c52..aa903789ad12 100644 --- a/packages/node/src/integrations/anr/index.ts +++ b/packages/node/src/integrations/anr/index.ts @@ -176,6 +176,7 @@ async function _startWorker( workerData: options, // We don't want any Node args to be passed to the worker execArgv: [], + env: { ...process.env, NODE_OPTIONS: undefined }, }); process.on('exit', () => { diff --git a/packages/node/src/integrations/local-variables/local-variables-async.ts b/packages/node/src/integrations/local-variables/local-variables-async.ts index e1e0ebadf755..c3dcb1d12450 100644 --- a/packages/node/src/integrations/local-variables/local-variables-async.ts +++ b/packages/node/src/integrations/local-variables/local-variables-async.ts @@ -81,6 +81,7 @@ export const localVariablesAsyncIntegration = defineIntegration((( workerData: options, // We don't want any Node args to be passed to the worker execArgv: [], + env: { ...process.env, NODE_OPTIONS: undefined }, }); process.on('exit', () => {