Repository navigation
Conversation
…tart When an idle span was interrupted while a child request was still in flight, its end was trimmed to the last finished child, which could be before the request started. The running request span was then force-ended at that timestamp. Relay drops spans that end before they start, so the backend http.server span lost its parent. Never trim an idle span to before a running child started. With span streaming, let running children end on their own when the idle span is cut short. If it ended because of the child span or final timeout, they are likely stuck, so cancel them right away as before. Children that never end are cancelled after the final timeout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
size-limit report 📦Compared: 50756e5 (PR test merge using develop at d799281) Against: d799281 (develop) · base run #68208 ✅ Baseline matches: this diff contains only this PR's changes.
|
This branch has not been deployed
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.
What
When an interaction or navigation idle span ends while a request it started is still in flight, the request span is no longer ended before it started. With span streaming, the request now ends on its own with its real duration and status.
heartbeatFailedorfinalTimeoutthey are cancelled right away as before, and children that never end are cancelled afterfinalTimeout.Why
A second tap ends the first
ui.action.clickspan. The idle span then trimmed its end to the last finished child (often the 16 msui.interaction.click) and force-ended the running fetch there, before the fetch started. Relay drops spans with start > end, butsentry-tracealready carried the fetch's span ID, so the backendhttp.serverspan showed up as an orphan. With streaming, each span is sent on its own, so the idle span has no reason to cut its children short. Pageload durations are kept as they are: the trim only moves out to a running child's start, not to the passed end timestamp.🤖 Generated with Claude Code