Skip to content

Commit ebf2eca

Browse files
committed
Always call continueTrace
1 parent 3f48804 commit ebf2eca

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/remix/src/server/instrumentServer.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -432,13 +432,7 @@ function wrapRequestHandler<T extends ServerBuild | (() => ServerBuild | Promise
432432
return res;
433433
};
434434

435-
// Only continue trace if there's an incoming sentry-trace header.
436-
// Otherwise, start a fresh trace in the isolation scope.
437-
if (sentryTrace) {
438-
return continueTrace({ sentryTrace, baggage: baggage || '' }, handleRequest);
439-
}
440-
441-
return handleRequest();
435+
return continueTrace({ sentryTrace: sentryTrace || '', baggage: baggage || '' }, handleRequest);
442436
});
443437
};
444438
}

0 commit comments

Comments
 (0)