Repository navigation
Conversation
Contributor
size-limit report 📦Compared: 7213e15 (PR test merge using develop at 901cf40) Against: 901cf40 (develop) · base run #68191 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsAll optional checks were successful. 65 successful. See the run. Successful checks
|
logaretm
marked this pull request as ready for review
November 26, 2026 22:38
Lms24
approved these changes
Nov 27, 2026
logaretm
deleted the
awad/js-4168-finished-idle-spans-retain-their-final-timeout-callback
branch
November 27, 2026 14:55
51 tasks done
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.
A finished idle span stayed in memory until its final timeout fired because its timers were never cancelled, this PR clears the timer along with child span timers.
The original issue isn't too severe as these timers eventually time out and the memory would be cleared, the behavior change here is that all child timers are also cancelled along with it. It's not a big behavior change since the child spans were force-ended anyways, so this cleans up their memory presence.
In other words, I don't see a case where a child span outlived its parent and relied on the timeout to end naturally.
Overall seems like a safe change. I added tests that check no timer is left pending after an idle span ends by itself or is ended externally.
closes #26936