Skip to content

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
@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