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

Loading Sentry via --require causes debugger to cycle #11956

Closed
timfish opened this issue May 8, 2024 · 1 comment · Fixed by #11963
Closed

Loading Sentry via --require causes debugger to cycle #11956

timfish opened this issue May 8, 2024 · 1 comment · Fixed by #11963
Assignees

Comments

@timfish
Copy link
Collaborator

timfish commented May 8, 2024

Using the --require flag to load Sentry causes the node debugging inspector to initialize every second for the local variables integration.

Reported by @s1gr1d

@timfish timfish self-assigned this May 8, 2024
@timfish
Copy link
Collaborator Author

timfish commented May 9, 2024

This is caused by the fact that --require and --import inject the code into EVERY child thread and process. This includes:

  • The main thread (obviously!)
  • All worker_threads
  • Processes created with child_process.fork()
  • Processes created by the cluster module

This means the SDK is injected and started in the worker threads and it then starts more worker threads!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant