-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.20.0
Framework Version
N/A
Link to Sentry event
N/A
SDK Setup/Reproduction Example
https://github.com/nwalters512/sentry-memory-leak-repro
This example uses a minimal Sentry + OTel setup, with code/structure being copied directly from the Sentry + OTel documentation.
Steps to Reproduce
- Clone the reproduction repository
- Run
npm install
- Run
npm run start
- Run
curl http://localhost:3000/
a few times
Expected Result
I would expect the log from each request to show just a single event processor. This would indicate that event processors aren't leaking between requests and thus that request isolation is working correctly.
Actual Result
Every time a request comes in, another event processor is added to the existing scope, indicating that the same scope is being shared among all events. In practice, this will lead to a memory leak, since the array of event processors will grow without bounds.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Waiting for: Community