File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/nextjs/src/common/utils Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,22 @@ import type { Scope } from '@sentry/types';
14
14
*/
15
15
export function withIsolationScopeOrReuseFromRootSpan < T > ( cb : ( isolationScope : Scope ) => T ) : T {
16
16
const activeSpan = getActiveSpan ( ) ;
17
- console . log ( 'with isolation scope or reuse' , activeSpan ? spanToJSON ( activeSpan ) : 'no active span' ) ;
18
17
19
18
if ( ! activeSpan ) {
20
19
return withIsolationScope ( cb ) ;
21
20
}
22
21
23
22
const rootSpan = getRootSpan ( activeSpan ) ;
24
23
24
+ rootSpan ?. setAttribute ( 'sentry.rootSpanExists' , true ) ;
25
+
25
26
// Verify this is a next span
26
27
if ( ! spanToJSON ( rootSpan ) . data ?. [ 'next.route' ] ) {
27
28
return withIsolationScope ( cb ) ;
28
29
}
29
30
31
+ rootSpan ?. setAttribute ( 'sentry.hasNextRoute' , true ) ;
32
+
30
33
const scopes = getCapturedScopesOnSpan ( rootSpan ) ;
31
34
32
35
const isolationScope = scopes . isolationScope ;
You can’t perform that action at this time.
0 commit comments