File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/nextjs/src/common Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ import {
12
12
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ,
13
13
setCapturedScopesOnSpan ,
14
14
setHttpStatus ,
15
+ vercelWaitUntil ,
15
16
winterCGHeadersToDict ,
16
17
withIsolationScope ,
17
18
withScope ,
18
19
} from '@sentry/core' ;
19
20
import { isNotFoundNavigationError , isRedirectNavigationError } from './nextNavigationErrorUtils' ;
20
21
import type { RouteHandlerContext } from './types' ;
22
+ import { flushSafelyWithTimeout } from './utils/responseEnd' ;
21
23
import { commonObjectToIsolationScope } from './utils/tracingUtils' ;
22
24
23
25
/**
@@ -92,6 +94,9 @@ export function wrapRouteHandlerWithSentry<F extends (...args: any[]) => any>(
92
94
} ) ;
93
95
}
94
96
} ,
97
+ ( ) => {
98
+ vercelWaitUntil ( flushSafelyWithTimeout ( ) ) ;
99
+ } ,
95
100
) ;
96
101
97
102
try {
You can’t perform that action at this time.
0 commit comments