fix(tracing): Stop setting NoOpSpan on scope in the streaming trace lifecycle#6844
Merged
Conversation
Contributor
Codecov Results 📊✅ 92197 passed | ⏭️ 6304 skipped | Total: 98501 | Pass Rate: 93.6% | Execution Time: 311m 25s 📊 Comparison with Base Branch
✨ No test changes detected All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2478 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 89.69% 89.69% —%
==========================================
Files 193 193 —
Lines 24033 24039 +6
Branches 8350 8354 +4
==========================================
+ Hits 21555 21561 +6
- Misses 2478 2478 —
- Partials 1387 1387 —Generated by Codecov Action |
NoOpSpan on scope in the streaming trace lifecycle
…reaming trace lifecycle
alexander-alderman-webb
changed the base branch from
master
to
webb/no-op-start-transaction
July 21, 2026 13:10
alexander-alderman-webb
marked this pull request as ready for review
July 21, 2026 14:46
sentrivana
approved these changes
Jul 21, 2026
This was referenced Jul 22, 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.
Description
Do not set a transaction-based span on the scope when span streaming. The early returns in
start_span()andstart_transaction()are not sufficient as they returnNoOpSpanwhen span streaming, andNoOpSpanstill mutates scopes on__enter__()and__exit__().Issues
Reminders
uv run ruff.feat:,fix:,ref:,meta:)