Skip to content

Commit 465ab6a

Browse files
committed
better debug...
1 parent 1e5ff11 commit 465ab6a

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

dev-packages/e2e-tests/test-applications/nextjs-app-dir/tests/client-app-routing-instrumentation.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ test('Creates a navigation transaction for app router routes', async ({ page })
2020
const randomRoute = String(Math.random());
2121

2222
const clientPageloadTransactionPromise = waitForTransaction('nextjs-13-app-dir', transactionEvent => {
23-
console.log(
24-
'transaction1',
25-
transactionEvent.transaction,
26-
JSON.stringify(transactionEvent.contexts?.trace, null, 2),
27-
);
2823
return (
2924
transactionEvent.transaction === `/server-component/parameter/${randomRoute}` &&
3025
transactionEvent.contexts?.trace?.op === 'pageload'

dev-packages/e2e-tests/test-applications/nextjs-app-dir/tests/route-handlers.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ test('Should create a transaction for route handlers and correctly set span stat
2525
request,
2626
}) => {
2727
const routehandlerTransactionPromise = waitForTransaction('nextjs-13-app-dir', async transactionEvent => {
28-
console.log('should be POST /route-handlers/[param]', transactionEvent.transaction);
2928
// Sometimes, next.js adds /route there, we accept both variants
3029
return (
3130
transactionEvent.transaction === 'POST /route-handlers/[param]' ||
@@ -48,8 +47,6 @@ test('Should record exceptions and transactions for faulty route handlers', asyn
4847
});
4948

5049
const routehandlerTransactionPromise = waitForTransaction('nextjs-13-app-dir', async transactionEvent => {
51-
console.log('transactionEvent3', JSON.stringify(transactionEvent, null, 2));
52-
console.log('should be PUT /route-handlers/[param]', transactionEvent.transaction);
5350
// Sometimes, next.js adds /route there, we accept both variants
5451
return (
5552
transactionEvent.transaction === 'PUT /route-handlers/[param]' ||

packages/nextjs/src/common/utils/withIsolationScopeOrReuseFromRootSpan.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import type { Scope } from '@sentry/types';
1414
*/
1515
export function withIsolationScopeOrReuseFromRootSpan<T>(cb: (isolationScope: Scope) => T): T {
1616
const activeSpan = getActiveSpan();
17+
console.log('with isolation scope or reuse', activeSpan ? spanToJSON(activeSpan) : 'no active span');
1718

1819
if (!activeSpan) {
1920
return withIsolationScope(cb);

0 commit comments

Comments
 (0)