File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/platforms/browser/lib/auto-instrumentation Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,16 @@ export class ResourceLoadPlugin implements Plugin<BrowserConfiguration> {
4444 const entries = list . getEntries ( ) as ResourceTiming [ ]
4545
4646 for ( const entry of entries ) {
47- if ( [ 'fetch' , 'xmlhttprequest' ] . includes ( entry . initiatorType ) ) continue
47+ if ( entry . initiatorType === 'fetch' || entry . initiatorType === 'xmlhttprequest' ) {
48+ continue
49+ }
4850
4951 const parentContext = this . spanFactory . firstSpanContext
5052
5153 if ( parentContext ) {
5254 const url = new URL ( entry . name )
53- const name = url . href . replace ( url . search , '' )
55+ url . search = ''
56+ const name = url . href
5457
5558 const span = this . spanFactory . startSpan ( `[ResourceLoad]${ name } ` , {
5659 parentContext,
You can’t perform that action at this time.
0 commit comments