Repository navigation
measure(remote): report the lean lane's per-event-type byte share - #868
Merged
Merged
Conversation
The live-lane measurement reported only totals, so a report could say how big the lane is but not which event types still carry it. Add per-type byte totals for the full lane, the lean feed, and the merged (published) feed. Motivated by needing to answer 'what is the lane made of now' — the answer is dominated by tool_start, usage and the thinking boundaries, while thinking_delta/tool_delta (97.8% of the full lane) are gone.
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.
The live-lane measurement reported only totals, so a report could say how big the lean lane is but not which event types still carry it.
Adds per-type byte totals for three views of the same real journal:
fullByType— every source event, before the lean filterleanByType— what the lean filter deliverspublishedByType— what actually goes on the wire after coalescingMeasurement-only (test code,
#[ignore]). No production behaviour changes.Measured on the three heaviest completed runs (real journals, shipping code path):
Full lane by type:
thinking_delta57.1%,tool_delta40.7%,tool_end0.9%,tool_start0.7%.Lean lane by type (published):
tool_start57.9%,usage14.8%,tool_end12.4%,thinking_start+thinking_end13.2%,text_chunk1.5%.The two content-streaming types were 97.8% of the lane and are now zero; what remains is per-tool-call and per-thinking-block metadata.