File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
dev-packages/e2e-tests/test-applications/nextjs-app-dir Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 20
20
"@types/node" : " 18.11.17" ,
21
21
"@types/react" : " 18.0.26" ,
22
22
"@types/react-dom" : " 18.0.9" ,
23
- "next" : " 14.0.2 " ,
23
+ "next" : " 14.0.0 " ,
24
24
"react" : " 18.2.0" ,
25
25
"react-dom" : " 18.2.0" ,
26
26
"typescript" : " 4.9.5" ,
Original file line number Diff line number Diff line change @@ -21,10 +21,7 @@ import { flushQueue } from './utils/responseEnd';
21
21
22
22
/** As our own HTTP integration is disabled (src/server/index.ts) the rootSpan comes from Next.js.
23
23
* In case there is not root span, we start a new span. */
24
- function startOrUpdateSpan (
25
- spanName : string ,
26
- handleResponseErrors : ( rootSpan : Span ) => Promise < Response > ,
27
- ) : Promise < Response > {
24
+ function startOrUpdateSpan ( spanName : string , cb : ( rootSpan : Span ) => Promise < Response > ) : Promise < Response > {
28
25
const activeSpan = getActiveSpan ( ) ;
29
26
const rootSpan = activeSpan && getRootSpan ( activeSpan ) ;
30
27
@@ -34,7 +31,7 @@ function startOrUpdateSpan(
34
31
rootSpan . setAttribute ( SEMANTIC_ATTRIBUTE_SENTRY_OP , 'http.server' ) ;
35
32
rootSpan . setAttribute ( SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN , 'auto.function.nextjs' ) ;
36
33
37
- return handleResponseErrors ( rootSpan ) ;
34
+ return cb ( rootSpan ) ;
38
35
} else {
39
36
return startSpan (
40
37
{
@@ -47,7 +44,7 @@ function startOrUpdateSpan(
47
44
} ,
48
45
} ,
49
46
( span : Span ) => {
50
- return handleResponseErrors ( span ) ;
47
+ return cb ( span ) ;
51
48
} ,
52
49
) ;
53
50
}
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import { onUncaughtExceptionIntegration } from './onUncaughtExceptionIntegration
12
12
13
13
export * from '@sentry/node' ;
14
14
import type { EventProcessor } from '@sentry/types' ;
15
- import { requestIsolationScopeIntegration } from './requestIsolationScopeIntegration' ;
16
15
17
16
export { captureUnderscoreErrorException } from '../common/_error' ;
18
17
export { onUncaughtExceptionIntegration } from './onUncaughtExceptionIntegration' ;
@@ -82,7 +81,7 @@ export function init(options: NodeOptions): void {
82
81
integration . name !== 'Http' ,
83
82
) ,
84
83
onUncaughtExceptionIntegration ( ) ,
85
- requestIsolationScopeIntegration ( ) ,
84
+ // requestIsolationScopeIntegration(),
86
85
] ;
87
86
88
87
// This value is injected at build time, based on the output directory specified in the build config. Though a default
You can’t perform that action at this time.
0 commit comments