You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lforst
changed the title
[v9] Disallow returning null from beforeSendSpan
[v9] Disallow returning null from beforeSendSpan and also pass root spans
Nov 27, 2024
Quick update: Since the param types of beforeSendSpan do not allow passing an event, we just discussed to try to see if this hook can be called earlier in the code (e.g. before creating the event). This would avoid adding all the code for destructuring the root span out of the event object and then writing back to it.
Description
In #14335 deprecated
null
to be returned frombeforeSendSpan
.We should adjust the behaviour to either
In either case the type needs to be updated.
Additionally, root spans also need to be passed to
beforeSendSpan
<-- This will require a migration/changelog entry.The text was updated successfully, but these errors were encountered: