File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
packages/browser-utils/src/metrics Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -182,4 +182,5 @@ export function registerInpInteractionListener(): void {
182
182
} ;
183
183
184
184
addPerformanceInstrumentationHandler ( 'event' , handleEntries ) ;
185
+ addPerformanceInstrumentationHandler ( 'first-input' , handleEntries ) ;
185
186
}
Original file line number Diff line number Diff line change @@ -6,7 +6,15 @@ import { onLCP } from './web-vitals/getLCP';
6
6
import { observe } from './web-vitals/lib/observe' ;
7
7
import { onTTFB } from './web-vitals/onTTFB' ;
8
8
9
- type InstrumentHandlerTypePerformanceObserver = 'longtask' | 'event' | 'navigation' | 'paint' | 'resource' | 'element' ;
9
+ type InstrumentHandlerTypePerformanceObserver =
10
+ | 'longtask'
11
+ | 'event'
12
+ | 'navigation'
13
+ | 'paint'
14
+ | 'resource'
15
+ | 'element'
16
+ // fist-input is still needed for INP
17
+ | 'first-input' ;
10
18
11
19
type InstrumentHandlerTypeMetric = 'cls' | 'lcp' | 'ttfb' | 'inp' ;
12
20
You can’t perform that action at this time.
0 commit comments