feat(dashboard): add timing and size columns to network panel#1057
Open
mvanhorn wants to merge 3 commits intovercel-labs:mainfrom
Open
feat(dashboard): add timing and size columns to network panel#1057mvanhorn wants to merge 3 commits intovercel-labs:mainfrom
mvanhorn wants to merge 3 commits intovercel-labs:mainfrom
Conversation
Expose transfer size and request duration in the dashboard's network request list. The data was already captured by CDP events for HAR recording but not surfaced in TrackedRequest. This adds encodedDataLength and durationMs fields to TrackedRequest, extends the Network.loadingFinished handler to fire for request_tracking (not just har_recording), and displays Size and Time columns in the dashboard. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
|
@mvanhorn is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
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.
Summary
Add transfer size and request duration columns to the dashboard's network panel. Each request row now shows encoded size (B/KB/MB) and total duration (ms/s) alongside the existing status, method, URL, and resource type.
Why this matters
The data was already captured by CDP events for HAR recording (
HarEntrystoresresponse_body_size,cdp_timing,loading_finished_timestamp) butTrackedRequest- which powers thenetwork requestscommand and the dashboard - omitted it entirely. Performance debugging in the dashboard required expanding each request individually to check timing. With these columns, slow or oversized requests are visible at a glance.Related: #111 (response body/network visibility), #935 (added
network request <id>detail but not list-level timing).Changes
Rust CLI (
cli/src/native/actions.rs):encoded_data_length,duration_ms, andmono_startfields toTrackedRequestNetwork.requestWillBeSentencodedDataLengthfromNetwork.responseReceivedin tracked requestsNetwork.loadingFinishedhandler to fire forrequest_tracking(not justhar_recording), computing duration from monotonic timestamps and updating final transfer sizeDashboard (
packages/dashboard/src/components/network-panel.tsx):encodedDataLengthanddurationMstoNetworkRequestinterfaceformatSize()andformatDuration()helpersVideo Demo
Verification
Built from source and ran the dashboard with live traffic. Network requests now show size and timing data:
This contribution was developed with AI assistance (Claude Code).