Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Allow adding measurements without global client (#13612)
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()`.
- Loading branch information