-
Notifications
You must be signed in to change notification settings - Fork 35
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
Update @sentry/node
to v8
#579
Comments
I've mostly completed the changes for v8 but the build fails with the previously reported issue with I can either wait until this dependency gets removed or drop |
AbhiPrasad
pushed a commit
to getsentry/sentry-javascript
that referenced
this issue
Sep 9, 2024
While working on updating [`sentry-javascript-bundler-plugins` to use v8 of the JavaScript SDK](getsentry/sentry-javascript-bundler-plugins#579), I found that I was unable to set measurements as the global client is not used. If you're not using a global client, there is currently no way to add measurements because `Sentry.setMeasurement()` relies on `getActiveSpan()` which in turn relies on `getCurrentScope()`. This PR moves the `activeSpan` into the last parameter which defaults to `getActiveSpan()`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We still use v7 of the Node SDK, we should bump our own usage to v8.
We can also explore using
ServerRuntimeClient
from@sentry/core
instead ofNodeClient
. We only manually create a client, so maybe we can skip the OTEL dependencies etc. here.The text was updated successfully, but these errors were encountered: