Skip to content

Commit 8fcfe9b

Browse files
committed
revert some stuff
1 parent 0eeadf3 commit 8fcfe9b

File tree

2 files changed

+4
-51
lines changed

2 files changed

+4
-51
lines changed

dev-packages/e2e-tests/test-applications/nuxt-3-min/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
"start": "node .output/server/index.mjs",
1212
"start:import": "node --import ./.output/server/sentry.server.config.mjs .output/server/index.mjs",
1313
"clean": "npx nuxi cleanup",
14-
"test": "playwright test -g 'distributed tracing'",
14+
"test": "playwright test",
1515
"test:build": "pnpm install && pnpm build",
1616
"test:assert": "pnpm test"
1717
},
1818
"dependencies": {
1919
"@sentry/nuxt": "latest || *",
20-
"nuxt": "3.9.0",
21-
"vue": "latest",
22-
"vue-router": "latest"
20+
"nuxt": "3.7.0",
21+
"vue": "3.3.4",
22+
"vue-router": "4.2.4"
2323
},
2424
"devDependencies": {
2525
"@playwright/test": "~1.53.2",

packages/browser/src/tracing/browserTracingIntegration.ts

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*/
311311
export 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

Comments
 (0)