feat(streaming): Promote before_send_span to top-level option#6885
Open
sentrivana wants to merge 3 commits into
Open
feat(streaming): Promote before_send_span to top-level option#6885sentrivana wants to merge 3 commits into
before_send_span to top-level option#6885sentrivana wants to merge 3 commits into
Conversation
Add `before_send_span` as a top-level `sentry_sdk.init()` parameter alongside `before_send_log` and `before_send_metric`, while keeping backward compatibility with the `_experiments` dict. Warn when span streaming is not enabled.
sentrivana
marked this pull request as ready for review
July 24, 2026 13:00
Contributor
Codecov Results 📊✅ 96545 passed | ⏭️ 6340 skipped | Total: 102885 | Pass Rate: 93.84% | Execution Time: 336m 55s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2510 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 89.68% 89.68% —%
==========================================
Files 193 193 —
Lines 24330 24332 +2
Branches 8578 8580 +2
==========================================
+ Hits 21820 21822 +2
- Misses 2510 2510 —
- Partials 1397 1397 —Generated by Codecov Action |
ericapisani
approved these changes
Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bump
before_send_spanto a top-level option alongside its other span streaming friends.