File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/tracing-internal/src/browser/metrics Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { onFID } from '../web-vitals/getFID';
1010import { onLCP } from '../web-vitals/getLCP' ;
1111import { getVisibilityWatcher } from '../web-vitals/lib/getVisibilityWatcher' ;
1212import { observe } from '../web-vitals/lib/observe' ;
13- import type { NavigatorDeviceMemory , NavigatorNetworkInformation , PerformanceEventTiming } from '../web-vitals/types' ;
13+ import type { NavigatorDeviceMemory , NavigatorNetworkInformation } from '../web-vitals/types' ;
1414import { _startChild , isMeasurementValue } from './utils' ;
1515
1616/**
@@ -161,7 +161,7 @@ function _trackFID(): void {
161161 __DEBUG_BUILD__ && logger . log ( '[Measurements] Adding FID' ) ;
162162 _measurements [ 'fid' ] = { value : metric . value , unit : 'millisecond' } ;
163163 _measurements [ 'mark.fid' ] = { value : timeOrigin + startTime , unit : 'second' } ;
164- _fidEntry = entry ;
164+ _fidEntry = entry as PerformanceEventTiming ;
165165 } ) ;
166166}
167167
@@ -503,7 +503,7 @@ function _tagMetricInfo(transaction: Transaction): void {
503503 ) ;
504504 }
505505
506-
506+
507507 // Capture FID properties
508508 if ( _fidEntry && _fidEntry . target ) {
509509 transaction . setTag ( 'fid.element' , htmlTreeAsString ( _fidEntry . target ) ) ;
You can’t perform that action at this time.
0 commit comments