File tree Expand file tree Collapse file tree 2 files changed +2
-18
lines changed
packages/tracing-internal/src/browser Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -51,23 +51,7 @@ function instrument(type: InstrumentHandlerType): void {
51
51
}
52
52
53
53
export function addPerformanceInstrumentationHandler (
54
- type : 'event' ,
55
- callback : ( data : { entries : PerformanceEventTiming [ ] } ) => void ,
56
- ) : CleanupHandlerCallback ;
57
- export function addPerformanceInstrumentationHandler (
58
- type : 'navigation' ,
59
- callback : ( data : { entries : PerformanceNavigationTiming [ ] } ) => void ,
60
- ) : CleanupHandlerCallback ;
61
- export function addPerformanceInstrumentationHandler (
62
- type : 'paint' ,
63
- callback : ( data : { entries : PerformancePaintTiming [ ] } ) => void ,
64
- ) : CleanupHandlerCallback ;
65
- export function addPerformanceInstrumentationHandler (
66
- type : 'resource' ,
67
- callback : ( data : { entries : PerformanceResourceTiming [ ] } ) => void ,
68
- ) : CleanupHandlerCallback ;
69
- export function addPerformanceInstrumentationHandler (
70
- type : 'longtask' | 'element' | InstrumentHandlerTypePerformanceObserver ,
54
+ type : InstrumentHandlerTypePerformanceObserver ,
71
55
callback : ( data : { entries : PerformanceEntry [ ] } ) => void ,
72
56
) : CleanupHandlerCallback ;
73
57
export function addPerformanceInstrumentationHandler (
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export function startTrackingInteractions(): void {
95
95
const duration = msToSec ( entry . duration ) ;
96
96
97
97
transaction . startChild ( {
98
- description : htmlTreeAsString ( entry . target ) ,
98
+ description : htmlTreeAsString ( ( entry as PerformanceEventTiming ) . target ) ,
99
99
op : `ui.interaction.${ entry . name } ` ,
100
100
origin : 'auto.ui.browser.metrics' ,
101
101
startTimestamp : startTime ,
You can’t perform that action at this time.
0 commit comments