@@ -309,7 +309,6 @@ const DEFAULT_BROWSER_TRACING_OPTIONS: BrowserTracingOptions = {
309309 * We explicitly export the proper type here, as this has to be extended in some cases.
310310 */
311311export const browserTracingIntegration = ( ( _options : Partial < BrowserTracingOptions > = { } ) => {
312- console . log ( 'init browserTracingIntegration _options' , _options ) ;
313312 const latestRoute : RouteInfo = {
314313 name : undefined ,
315314 source : undefined ,
@@ -350,8 +349,6 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
350349 ..._options ,
351350 } ;
352351
353- console . log ( 'deconstructed beforeStartSpan' , beforeStartSpan ) ;
354-
355352 let _collectWebVitals : undefined | ( ( ) => void ) ;
356353 let lastInteractionTimestamp : number | undefined ;
357354
@@ -363,10 +360,6 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
363360 ? beforeStartSpan ( startSpanOptions )
364361 : startSpanOptions ;
365362
366- // fixme: this is always undefined
367- console . log ( 'beforeStartSpan (inside _createRouteSpan)' , beforeStartSpan ) ;
368- console . log ( 'finalStartSpanOptions' , finalStartSpanOptions ) ;
369-
370363 const attributes = finalStartSpanOptions . attributes || { } ;
371364
372365 // If `finalStartSpanOptions.name` is different than `startSpanOptions.name`
@@ -563,11 +556,6 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
563556 }
564557
565558 if ( WINDOW . location ) {
566- console . log ( 'window.location' , WINDOW . location ) ;
567-
568- // todo: set globalThis and check if we can access it here
569- // @ts -ignore
570- console . log ( 'routemanifest' , globalThis . _sentryRouteManifest ) ;
571559 if ( instrumentPageLoad ) {
572560 const origin = browserPerformanceTimeOrigin ( ) ;
573561 startBrowserTracingPageLoadSpan ( client , {
@@ -801,38 +789,3 @@ function isRedirect(activeSpan: Span, lastInteractionTimestamp: number | undefin
801789
802790 return true ;
803791}
804-
805- /**
806- * return originalBrowserTracingIntegration({
807- * ...options,
808- * beforeStartSpan: (startSpanOptions) => {
809- * console.log('beforeStartSpan called with options:', startSpanOptions);
810- *
811- * const routeName = getMetaContent('sentry-route-name');
812- * console.log('astro routeName from beforeStartSpan:', routeName);
813- *
814- * if (routeName) {
815- * const modifiedOptions = {
816- * ...startSpanOptions,
817- * name: routeName,
818- * attributes: {
819- * ...startSpanOptions.attributes,
820- * [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route' as TransactionSource,
821- * },
822- * };
823- * console.log('modified options:', modifiedOptions);
824- * return modifiedOptions;
825- * }
826- *
827- *
828- * if (options.beforeStartSpan) {
829- * return options.beforeStartSpan(startSpanOptions);
830- * }
831- *
832- * return startSpanOptions;
833- * },
834- * });
835- * }
836- *
837- * export { browserTracingIntegration };
838- */
0 commit comments