Skip to content

Commit 49c623f

Browse files
authored
fix(nextjs): Connect Edge API route errors to span (#6806)
1 parent 0e1f3dc commit 49c623f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/nextjs/src/edge/utils/edgeWrapperUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export function withEdgeWrapping<H extends EdgeRouteHandler>(
8080
span?.setStatus('internal_error');
8181

8282
captureException(objectifiedErr, scope => {
83+
scope.setSpan(span);
8384
scope.addEventProcessor(event => {
8485
addExceptionMechanism(event, {
8586
type: 'instrument',

0 commit comments

Comments
 (0)