Skip to content

Commit 5b14473

Browse files
committed
replay web vital breadcrumbs
1 parent 136f496 commit 5b14473

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

packages/replay-internal/src/types/performance.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,42 @@ export interface WebVitalData {
113113
nodeId?: number;
114114
}
115115

116+
export interface CumulativeLayoutShiftData {
117+
/**
118+
* Render time (in ms) of the CLS
119+
*/
120+
value: number;
121+
size: number;
122+
/**
123+
* The recording id of the CLS node. -1 if not found
124+
*/
125+
nodeId?: number;
126+
}
127+
128+
export interface FirstInputDelayData {
129+
/**
130+
* Render time (in ms) of the FID
131+
*/
132+
value: number;
133+
size: number;
134+
/**
135+
* The recording id of the FID node. -1 if not found
136+
*/
137+
nodeId?: number;
138+
}
139+
140+
export interface InteractionToNextPaintData {
141+
/**
142+
* Render time (in ms) of the INP
143+
*/
144+
value: number;
145+
size: number;
146+
/**
147+
* The recording id of the INP node. -1 if not found
148+
*/
149+
nodeId?: number;
150+
}
151+
116152
/**
117153
* Entries that come from window.performance
118154
*/

0 commit comments

Comments
 (0)