1
1
import {
2
- WINDOW ,
3
2
browserTracingIntegration ,
4
3
getActiveSpan ,
5
4
getRootSpan ,
6
5
spanToJSON ,
7
6
startBrowserTracingNavigationSpan ,
8
- startBrowserTracingPageLoadSpan ,
9
7
} from '@sentry/browser' ;
10
8
import {
11
9
SEMANTIC_ATTRIBUTE_SENTRY_OP ,
@@ -136,11 +134,10 @@ export function solidRouterBrowserTracingIntegration(
136
134
) : Integration {
137
135
const integration = browserTracingIntegration ( {
138
136
...options ,
139
- instrumentPageLoad : false ,
140
137
instrumentNavigation : false ,
141
138
} ) ;
142
139
143
- const { instrumentPageLoad = true , instrumentNavigation = true , useBeforeLeave, useLocation } = options ;
140
+ const { instrumentNavigation = true , useBeforeLeave, useLocation } = options ;
144
141
145
142
return {
146
143
...integration ,
@@ -151,18 +148,6 @@ export function solidRouterBrowserTracingIntegration(
151
148
afterAllSetup ( client ) {
152
149
integration . afterAllSetup ( client ) ;
153
150
154
- const initPathName = WINDOW && WINDOW . location && WINDOW . location . pathname ;
155
- if ( instrumentPageLoad && initPathName ) {
156
- startBrowserTracingPageLoadSpan ( client , {
157
- name : initPathName ,
158
- attributes : {
159
- [ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : 'url' ,
160
- [ SEMANTIC_ATTRIBUTE_SENTRY_OP ] : 'pageload' ,
161
- [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.pageload.solidjs.solidrouter' ,
162
- } ,
163
- } ) ;
164
- }
165
-
166
151
if ( instrumentNavigation ) {
167
152
CLIENTS_WITH_INSTRUMENT_NAVIGATION . add ( client ) ;
168
153
}
0 commit comments