Skip to content

Commit 0f97351

Browse files
committed
refactor: sentry 버전 변경 사항 반영
1 parent 8a4dfa1 commit 0f97351

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
import { INestApplication } from '@nestjs/common/interfaces/nest-application.interface';
22
import * as Sentry from '@sentry/node';
3-
import { ProfilingIntegration } from '@sentry/profiling-node';
3+
import { nodeProfilingIntegration } from '@sentry/profiling-node';
44

55
export function setupSentry(app: INestApplication, dsn: string): void {
66
Sentry.init({
77
dsn: dsn,
8-
integrations: [new ProfilingIntegration()],
8+
integrations: [nodeProfilingIntegration()],
99
tracesSampleRate: 0.3,
1010
profilesSampleRate: 0.3,
1111
});
1212

13-
app.use(Sentry.Handlers.errorHandler());
14-
app.use(Sentry.Handlers.tracingHandler());
15-
app.use(Sentry.Handlers.requestHandler());
13+
Sentry.setupExpressErrorHandler(app);
1614
}

0 commit comments

Comments
 (0)