Commit 0f97351 1 parent 8a4dfa1 commit 0f97351 Copy full SHA for 0f97351
File tree 1 file changed +3
-5
lines changed
backend/was/src/common/config
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { INestApplication } from '@nestjs/common/interfaces/nest-application.interface' ;
2
2
import * as Sentry from '@sentry/node' ;
3
- import { ProfilingIntegration } from '@sentry/profiling-node' ;
3
+ import { nodeProfilingIntegration } from '@sentry/profiling-node' ;
4
4
5
5
export function setupSentry ( app : INestApplication , dsn : string ) : void {
6
6
Sentry . init ( {
7
7
dsn : dsn ,
8
- integrations : [ new ProfilingIntegration ( ) ] ,
8
+ integrations : [ nodeProfilingIntegration ( ) ] ,
9
9
tracesSampleRate : 0.3 ,
10
10
profilesSampleRate : 0.3 ,
11
11
} ) ;
12
12
13
- app . use ( Sentry . Handlers . errorHandler ( ) ) ;
14
- app . use ( Sentry . Handlers . tracingHandler ( ) ) ;
15
- app . use ( Sentry . Handlers . requestHandler ( ) ) ;
13
+ Sentry . setupExpressErrorHandler ( app ) ;
16
14
}
You can’t perform that action at this time.
0 commit comments