getsentry/sentry-cocoa

Add beforeSendSpan Hook

Closed this issue · 0 comments

Description

Add a beforeSendSpan hook so customers can drop individual spans. JS already beforeSendSpan hook which uses serialized span data to be forward compatible with an only spans world, and their spans are technically read-only (because they are in otel). But we shouldn't pass the serialized span data to the callback. Instead, we should pass the Span object.