-
-
Couldn't load subscription status.
- Fork 1.7k
feat(node): Add app.free_memory info to events #12150
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
| // Process enhanced with methods from Node 18, 20, 22 as @types/node | ||
| // is on `14.18.0` to match minimum version requirements of the SDK | ||
| interface ProcessWithCurrentValues extends NodeJS.Process { | ||
| availableMemory(): number; |
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.
Maybe this method should be optional to signify it doesn't exist for all supported node versions?
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.
yeah good call! will change
size-limit report 📦
|
Adds support for https://nodejs.org/api/process.html#processavailablememory introduced with Node 22
App Context: https://develop.sentry.dev/sdk/event-payloads/contexts/#app-context
ref #11455