@@ -309,7 +309,6 @@ const DEFAULT_BROWSER_TRACING_OPTIONS: BrowserTracingOptions = {
309
309
* We explicitly export the proper type here, as this has to be extended in some cases.
310
310
*/
311
311
export const browserTracingIntegration = ( ( _options : Partial < BrowserTracingOptions > = { } ) => {
312
- console . log ( 'init browserTracingIntegration _options' , _options ) ;
313
312
const latestRoute : RouteInfo = {
314
313
name : undefined ,
315
314
source : undefined ,
@@ -350,8 +349,6 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
350
349
..._options ,
351
350
} ;
352
351
353
- console . log ( 'deconstructed beforeStartSpan' , beforeStartSpan ) ;
354
-
355
352
let _collectWebVitals : undefined | ( ( ) => void ) ;
356
353
let lastInteractionTimestamp : number | undefined ;
357
354
@@ -363,10 +360,6 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
363
360
? beforeStartSpan ( startSpanOptions )
364
361
: startSpanOptions ;
365
362
366
- // fixme: this is always undefined
367
- console . log ( 'beforeStartSpan (inside _createRouteSpan)' , beforeStartSpan ) ;
368
- console . log ( 'finalStartSpanOptions' , finalStartSpanOptions ) ;
369
-
370
363
const attributes = finalStartSpanOptions . attributes || { } ;
371
364
372
365
// If `finalStartSpanOptions.name` is different than `startSpanOptions.name`
@@ -563,11 +556,6 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
563
556
}
564
557
565
558
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 ) ;
571
559
if ( instrumentPageLoad ) {
572
560
const origin = browserPerformanceTimeOrigin ( ) ;
573
561
startBrowserTracingPageLoadSpan ( client , {
@@ -801,38 +789,3 @@ function isRedirect(activeSpan: Span, lastInteractionTimestamp: number | undefin
801
789
802
790
return true ;
803
791
}
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