Skip to content

Commit

Permalink
fix(nextjs): Connect Edge API route errors to span (#6806)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Jan 17, 2023
1 parent 0e1f3dc commit 49c623f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nextjs/src/edge/utils/edgeWrapperUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export function withEdgeWrapping<H extends EdgeRouteHandler>(
span?.setStatus('internal_error');

captureException(objectifiedErr, scope => {
scope.setSpan(span);
scope.addEventProcessor(event => {
addExceptionMechanism(event, {
type: 'instrument',
Expand Down

0 comments on commit 49c623f

Please sign in to comment.