-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
BugPackage: solidstartIssues related to the Sentry SolidStart SDKIssues related to the Sentry SolidStart SDK
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/solidstart
SDK Version
8.33.0
Framework Version
Solid ^1.9.2, @solidjs/start @^1.0.8
Link to Sentry event
No response
Reproduction Example/SDK Setup
With sentryBeforeResponseMiddleware()
in onBeforeResponse
, we're seeing memory leaks, particularly on the request event.
import { createMiddleware } from '@solidjs/start/middleware';
import { sentryBeforeResponseMiddleware } from '@sentry/solidstart';
export default createMiddleware({
onBeforeResponse: [sentryBeforeResponseMiddleware()]
});
Steps to Reproduce
- Add middleware
- Run the server with
node --inspect
- take a memory snapshot in the node inspector
- Run a bench against the server, eg
ab -n 100 -c 5 http://localhost:3000
- take another memory snapshot
Expected Result
No memory leak
Actual Result
Memory leak… the request events are held onto and eventually exhaust the memory limit of the server, causing it to crash.
Metadata
Metadata
Assignees
Labels
BugPackage: solidstartIssues related to the Sentry SolidStart SDKIssues related to the Sentry SolidStart SDK
Projects
Status
Waiting for: Product Owner