Skip to content

fix(node): Disable LocalVariables integration on Node < v18#7748

Merged
AbhiPrasad merged 7 commits intogetsentry:developfrom
timfish:fix/local-variables
Apr 5, 2023
Merged

fix(node): Disable LocalVariables integration on Node < v18#7748
AbhiPrasad merged 7 commits intogetsentry:developfrom
timfish:fix/local-variables

Conversation

@timfish
Copy link
Copy Markdown
Collaborator

@timfish timfish commented Apr 5, 2023

It looks like the v8 inspector API has some incompatibilities with domains and async which cause them to not be GC'd in a reasonable timeframe for it to be used in production applications.

This PR causes the LocalVariables integration not to be enabled if the Node version is less than v18.

@AbhiPrasad
Copy link
Copy Markdown
Contributor

I refactored the node version constant usage in the SDK - #7734, so we'll prob have to adjust this based on that.

@timfish
Copy link
Copy Markdown
Collaborator Author

timfish commented Apr 5, 2023

Not sure what's going on here. The tests pass locally under Node v16!

@AbhiPrasad
Copy link
Copy Markdown
Contributor

AbhiPrasad commented Apr 5, 2023

Should we only run the local variables unit tests in Node 18 and above?

@timfish
Copy link
Copy Markdown
Collaborator Author

timfish commented Apr 5, 2023

Oh yes, thanks!

@AbhiPrasad AbhiPrasad marked this pull request as ready for review April 5, 2023 12:34
@AbhiPrasad
Copy link
Copy Markdown
Contributor

Marking this ready to review because we want to do a release today.

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) April 5, 2023 12:56
@AbhiPrasad AbhiPrasad merged commit 41ba98a into getsentry:develop Apr 5, 2023
@timfish timfish deleted the fix/local-variables branch April 5, 2023 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants