File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/sentry/static/sentry/app Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,6 @@ Sentry.configureScope(scope => {
4444 if ( window . __SENTRY__VERSION ) {
4545 scope . setTag ( 'sentry_version' , window . __SENTRY__VERSION ) ;
4646 }
47- scope . setSpan (
48- Sentry . getCurrentHub ( ) . startSpan ( {
49- op : 'pageload' ,
50- sampled : true ,
51- } )
52- ) ;
5347} ) ;
5448
5549// Used for operational metrics to determine that the application js
7872 ( config . urlPrefix &&
7973 ( config . urlPrefix . includes ( 'localhost' ) || config . urlPrefix . includes ( '127.0.0.1' ) ) ) )
8074) {
75+ Sentry . configureScope ( scope => {
76+ scope . setSpan (
77+ Sentry . getCurrentHub ( ) . startSpan ( {
78+ op : 'pageload' ,
79+ sampled : true ,
80+ } )
81+ ) ;
82+ } ) ;
8183 startApm ( ) ;
8284}
8385// -----------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments