-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(node): Make @sentry/node
powered by OpenTelemetry
#10762
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
Conversation
@sentry/node
powered by OpenTelemetry
size-limit report 📦
|
@@ -80,8 +80,8 @@ conditionalTest({ min: 18 })('LocalVariables integration', () => { | |||
child.on('message', msg => { | |||
reportedCount++; | |||
const rssMb = msg.memUsage.rss / 1024 / 1024; | |||
// We shouldn't use more than 100MB of memory | |||
expect(rssMb).toBeLessThan(100); | |||
// We shouldn't use more than 120MB of memory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timfish not sure how bad that is, is that just a "random" number or is the fact that this is exceeding this here a sign that it is actually leaking memory? 🤔 I would expect this to use more memory now if it's OTEL powered than before, but 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If memory is leaked, it exceeds this quite quickly. 100MB was chosen simply because it was the lowest figure where the tests would pass reliably.
This PR makes the former node-experimental package `@sentry/node`, and the former node package `@sentry/node-experimental`. All meta-SDKs (nextjs, sveltekit, remix, astro) as well as bun, serverless, depend on `@sentry/node-experimental` for now. We'll need to change this over one by one to instead depend on `@sentry/node`, and fix any things we find along the way. I've moved the test as much as possible, but didn't specifically invest a lot of time to fix tests that failed - I left them to point to node-experimental for now. This mainly affects express tests (we also have some new express tests, but may need to port some over), and some select others - we'll also need to investigate these one by one and replace/update them until none are left.
This PR makes the former node-experimental package
@sentry/node
, and the former node package@sentry/node-experimental
.All meta-SDKs (nextjs, sveltekit, remix, astro) as well as bun, serverless, depend on
@sentry/node-experimental
for now. We'll need to change this over one by one to instead depend on@sentry/node
, and fix any things we find along the way.I've moved the test as much as possible, but didn't specifically invest a lot of time to fix tests that failed - I left them to point to node-experimental for now. This mainly affects express tests (we also have some new express tests, but may need to port some over), and some select others - we'll also need to investigate these one by one and replace/update them until none are left.