-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix(node): Only set contexts runtime if not set. #5226
Conversation
Make sure we don't overwrite contexts runtime if it has already been set.
For a minute I thought I could just work around this by overwriting again in the Electron SDK normalisation code. But nope, it still gets sent with native crashes. I'm guessing this might also be an issue with |
size-limit report 📦
|
Come to think of it, wasn't |
This should help with that right?
Nope, it was always sent in event. https://github.com/getsentry/sentry-javascript/blame/d48f6fd79d4d860264868b6ae653cd902c87cd14/packages/node/src/client.ts#L143 |
It was also set in tags here: It looks like it was only set in event when the option was supplied: |
This was just in serverless - not for node in general. I think though for |
I've managed to override
Ah my bad! I was just looking at this really ancient code from the Electron SDK which probably hasn't been doing what it should for a long while: |
Closing as it should be taken care of by #5257 |
Make sure we don't overwrite contexts runtime if it has already been set.
Fixes issue addressed in #5190 (comment).
cc @timfish