-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: performance event display fiddling (#18629)
* only show wrapping data for fetch and xnr * show prettier timing * Update UI snapshots for `chromium` (2) * Update UI snapshots for `chromium` (2) --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
a81c1c7
commit 76c8652
Showing
5 changed files
with
430 additions
and
51 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
57 changes: 57 additions & 0 deletions
57
...es/session-recordings/player/inspector/components/Timing/NetworkRequestTiming.stories.tsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { mswDecorator } from '~/mocks/browser' | ||
import { Meta } from '@storybook/react' | ||
import { PerformanceEvent } from '~/types' | ||
import { NetworkRequestTiming } from 'scenes/session-recordings/player/inspector/components/Timing/NetworkRequestTiming' | ||
|
||
const meta: Meta<typeof NetworkRequestTiming> = { | ||
title: 'Components/NetworkRequestTiming', | ||
component: NetworkRequestTiming, | ||
decorators: [ | ||
mswDecorator({ | ||
get: {}, | ||
}), | ||
], | ||
} | ||
export default meta | ||
|
||
export function Basic(): JSX.Element { | ||
return ( | ||
<NetworkRequestTiming | ||
performanceEvent={ | ||
{ | ||
connect_end: 9525.599999964237, | ||
connect_start: 9525.599999964237, | ||
decoded_body_size: 18260, | ||
domain_lookup_end: 9525.599999964237, | ||
domain_lookup_start: 9525.599999964237, | ||
duration: 935.5, | ||
encoded_body_size: 18260, | ||
entry_type: 'resource', | ||
fetch_start: 9525.599999964237, | ||
initiator_type: 'fetch', | ||
name: 'http://localhost:8000/api/organizations/@current/plugins/repository/', | ||
next_hop_protocol: 'http/1.1', | ||
redirect_end: 0, | ||
redirect_start: 0, | ||
render_blocking_status: 'non-blocking', | ||
request_start: 9803.099999964237, | ||
response_end: 10461.099999964237, | ||
response_start: 10428.399999976158, | ||
response_status: 200, | ||
secure_connection_start: 0, | ||
start_time: 9525.599999964237, | ||
time_origin: '1699990397357', | ||
timestamp: 1699990406882, | ||
transfer_size: 18560, | ||
window_id: '018bcf51-b1f0-7fe0-ac05-10543621f4f2', | ||
worker_start: 0, | ||
uuid: '12345', | ||
distinct_id: '23456', | ||
session_id: 'abcde', | ||
pageview_id: 'fghij', | ||
current_url: 'http://localhost:8000/insights', | ||
} satisfies PerformanceEvent | ||
} | ||
/> | ||
) | ||
} |
Oops, something went wrong.