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
feat(span-first): Support before_send_span (#6239)
### Description
Add support for `before_send_span` in span streaming mode.
`before_send_span` is different from `before_send_metric` and
`before_send_log` in that:
- it doesn't allow users to drop a span (i.e., return `None`)
- it only allows to modify specific parts of the span
To that end, we're now serializing the span earlier, and exposing the
serialized dictionary in the `before_send` callback. This is consistent
with metrics and logs. It also means we're now queuing dictionaries
instead of `StreamedSpan` instances in the span batcher, which should
also decrease our memory footprint.
This aligns our implementation with JS.
See https://develop.sentry.dev/sdk/telemetry/spans/scrubbing-data/ for
spec.
#### Issues
* resolves: #5388
* resolves:
https://linear.app/getsentry/issue/PY-2057/add-before-send-span
0 commit comments