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

fix(node): Ensure execArgv are not sent to worker threads #11963

Merged
merged 1 commit into from May 10, 2024

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented May 9, 2024

Closes #11956

--require and --import inject the code into EVERY child thread and process by default. This means the SDK was injected and started in the worker threads we use for ANR and LocalVariablesAsync and when the SDK starts in those threads, more worker threads are created!

There is a warning about this here:
https://nodejs.org/api/worker_threads.html#launching-worker-threads-from-preload-scripts

Setting execArgv: [] stops the SDK from being run in our worker threads.

@timfish timfish marked this pull request as ready for review May 9, 2024 12:50
@lforst lforst merged commit dc3bc8c into develop May 10, 2024
83 checks passed
@lforst lforst deleted the timfish/fix-worker-threads branch May 10, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loading Sentry via --require causes debugger to cycle
4 participants