getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.68k stars 1.49k forks source link

ref(svelte): Use `onlyIfParent` for recording component update spans #11809

Closed Lms24 closed 3 weeks ago

Lms24 commented 3 weeks ago

Small refactor; The previous guard also worked but using onlyIfParent instead of checking for getActiveSpan saves us a couple of bytes