Skip to content

Commit c35aa3b

Browse files
authored
chore(nextjs): Rename handlers.ts to withSentry.ts (#3859)
1 parent bb4595c commit c35aa3b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/nextjs/src/index.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function addServerIntegrations(options: NextjsOptions): void {
5454
}
5555

5656
export { withSentryConfig } from './config';
57-
export { withSentry } from './utils/handlers';
57+
export { withSentry } from './utils/withSentry';
5858

5959
// wrap various server methods to enable error monitoring and tracing
6060
instrumentServer();

packages/nextjs/src/utils/handlers.ts renamed to packages/nextjs/src/utils/withSentry.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ type WrappedResponseEndMethod = AugmentedResponse['end'];
9898

9999
function wrapEndMethod(origEnd: ResponseEndMethod): WrappedResponseEndMethod {
100100
return async function newEnd(this: AugmentedResponse, ...args: unknown[]) {
101-
// TODO: if the handler errored, it will have popped us out of the domain, so all of our scope data will be missing
102-
103101
const transaction = this.__sentryTransaction;
104102

105103
if (transaction) {

0 commit comments

Comments
 (0)