File tree Expand file tree Collapse file tree 16 files changed +53
-11
lines changed
dev-packages/node-integration-tests/suites/tracing
google-cloud-serverless/src Expand file tree Collapse file tree 16 files changed +53
-11
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class AppModule {}
48
48
async function run ( ) : Promise < void > {
49
49
const app = await NestFactory . create ( AppModule ) ;
50
50
const { httpAdapter } = app . get ( HttpAdapterHost ) ;
51
+ // eslint-disable-next-line deprecation/deprecation
51
52
Sentry . setupNestErrorHandler ( app , new BaseExceptionFilter ( httpAdapter ) ) ;
52
53
await app . listen ( port ) ;
53
54
sendPortToRunner ( port ) ;
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ class AppModule {}
46
46
async function run ( ) : Promise < void > {
47
47
const app = await NestFactory . create ( AppModule ) ;
48
48
const { httpAdapter } = app . get ( HttpAdapterHost ) ;
49
+ // eslint-disable-next-line deprecation/deprecation
49
50
Sentry . setupNestErrorHandler ( app , new BaseExceptionFilter ( httpAdapter ) ) ;
50
51
await app . listen ( port ) ;
51
52
sendPortToRunner ( port ) ;
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class AppModule {}
48
48
async function run ( ) : Promise < void > {
49
49
const app = await NestFactory . create ( AppModule ) ;
50
50
const { httpAdapter } = app . get ( HttpAdapterHost ) ;
51
+ // eslint-disable-next-line deprecation/deprecation
51
52
Sentry . setupNestErrorHandler ( app , new BaseExceptionFilter ( httpAdapter ) ) ;
52
53
await app . listen ( port ) ;
53
54
sendPortToRunner ( port ) ;
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ async function run(): Promise<void> {
48
48
await app . listen ( port ) ;
49
49
50
50
const { httpAdapter } = app . get ( HttpAdapterHost ) ;
51
+ // eslint-disable-next-line deprecation/deprecation
51
52
Sentry . setupNestErrorHandler ( app , new BaseExceptionFilter ( httpAdapter ) ) ;
52
53
sendPortToRunner ( port ) ;
53
54
}
Original file line number Diff line number Diff line change 37
37
## Server-side SDKs (` @sentry/node ` and all dependents)
38
38
39
39
- Deprecated ` processThreadBreadcrumbIntegration ` in favor of ` childProcessIntegration ` . Functionally they are the same.
40
+ - Deprecated ` nestIntegration ` . Use the NestJS SDK (` @sentry/nestjs ` ) instead.
41
+ - Deprecated ` setupNestErrorHandler ` . Use the NestJS SDK (` @sentry/nestjs ` ) instead.
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ export {
84
84
mysql2Integration ,
85
85
mysqlIntegration ,
86
86
nativeNodeFetchIntegration ,
87
+ // eslint-disable-next-line deprecation/deprecation
87
88
nestIntegration ,
88
89
NodeClient ,
89
90
nodeContextIntegration ,
@@ -118,6 +119,7 @@ export {
118
119
setupExpressErrorHandler ,
119
120
setupHapiErrorHandler ,
120
121
setupKoaErrorHandler ,
122
+ // eslint-disable-next-line deprecation/deprecation
121
123
setupNestErrorHandler ,
122
124
setUser ,
123
125
spanToBaggageHeader ,
Original file line number Diff line number Diff line change @@ -101,7 +101,9 @@ export {
101
101
mysql2Integration ,
102
102
redisIntegration ,
103
103
tediousIntegration ,
104
+ // eslint-disable-next-line deprecation/deprecation
104
105
nestIntegration ,
106
+ // eslint-disable-next-line deprecation/deprecation
105
107
setupNestErrorHandler ,
106
108
postgresIntegration ,
107
109
prismaIntegration ,
Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ export {
124
124
mysql2Integration ,
125
125
redisIntegration ,
126
126
tediousIntegration ,
127
+ // eslint-disable-next-line deprecation/deprecation
127
128
nestIntegration ,
129
+ // eslint-disable-next-line deprecation/deprecation
128
130
setupNestErrorHandler ,
129
131
postgresIntegration ,
130
132
prismaIntegration ,
Original file line number Diff line number Diff line change @@ -101,7 +101,9 @@ export {
101
101
mysql2Integration ,
102
102
redisIntegration ,
103
103
tediousIntegration ,
104
+ // eslint-disable-next-line deprecation/deprecation
104
105
nestIntegration ,
106
+ // eslint-disable-next-line deprecation/deprecation
105
107
setupNestErrorHandler ,
106
108
postgresIntegration ,
107
109
prismaIntegration ,
Original file line number Diff line number Diff line change
1
+ import { nestIntegration as nestIntegrationAlias } from '@sentry/node' ;
2
+
1
3
export * from '@sentry/node' ;
2
4
5
+ /**
6
+ * Integration capturing tracing data for NestJS.
7
+ */
8
+ // eslint-disable-next-line deprecation/deprecation
9
+ export const nestIntegration = nestIntegrationAlias ;
10
+
11
+ // TODO(v9): Export custom `getDefaultIntegrations` from this SDK that automatically registers the `nestIntegration`.
12
+
3
13
export { init } from './sdk' ;
4
14
5
15
export {
You can’t perform that action at this time.
0 commit comments