getsentry / sentry-javascript

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

[v9] Disallow returning null from `beforeSendSpan` #14336

Open lforst opened 4 days ago

lforst commented 4 days ago

Description

In https://github.com/getsentry/sentry-javascript/issues/14335 deprecated null to be returned from beforeSendSpan.

We should adjust the behaviour to either

In either case the type needs to be updated.