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 {}
4848async function run ( ) : Promise < void > {
4949 const app = await NestFactory . create ( AppModule ) ;
5050 const { httpAdapter } = app . get ( HttpAdapterHost ) ;
51+ // eslint-disable-next-line deprecation/deprecation
5152 Sentry . setupNestErrorHandler ( app , new BaseExceptionFilter ( httpAdapter ) ) ;
5253 await app . listen ( port ) ;
5354 sendPortToRunner ( port ) ;
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ class AppModule {}
4646async function run ( ) : Promise < void > {
4747 const app = await NestFactory . create ( AppModule ) ;
4848 const { httpAdapter } = app . get ( HttpAdapterHost ) ;
49+ // eslint-disable-next-line deprecation/deprecation
4950 Sentry . setupNestErrorHandler ( app , new BaseExceptionFilter ( httpAdapter ) ) ;
5051 await app . listen ( port ) ;
5152 sendPortToRunner ( port ) ;
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class AppModule {}
4848async function run ( ) : Promise < void > {
4949 const app = await NestFactory . create ( AppModule ) ;
5050 const { httpAdapter } = app . get ( HttpAdapterHost ) ;
51+ // eslint-disable-next-line deprecation/deprecation
5152 Sentry . setupNestErrorHandler ( app , new BaseExceptionFilter ( httpAdapter ) ) ;
5253 await app . listen ( port ) ;
5354 sendPortToRunner ( port ) ;
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ async function run(): Promise<void> {
4848 await app . listen ( port ) ;
4949
5050 const { httpAdapter } = app . get ( HttpAdapterHost ) ;
51+ // eslint-disable-next-line deprecation/deprecation
5152 Sentry . setupNestErrorHandler ( app , new BaseExceptionFilter ( httpAdapter ) ) ;
5253 sendPortToRunner ( port ) ;
5354}
Original file line number Diff line number Diff line change 3737## Server-side SDKs (` @sentry/node ` and all dependents)
3838
3939- 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 {
8484 mysql2Integration ,
8585 mysqlIntegration ,
8686 nativeNodeFetchIntegration ,
87+ // eslint-disable-next-line deprecation/deprecation
8788 nestIntegration ,
8889 NodeClient ,
8990 nodeContextIntegration ,
@@ -118,6 +119,7 @@ export {
118119 setupExpressErrorHandler ,
119120 setupHapiErrorHandler ,
120121 setupKoaErrorHandler ,
122+ // eslint-disable-next-line deprecation/deprecation
121123 setupNestErrorHandler ,
122124 setUser ,
123125 spanToBaggageHeader ,
Original file line number Diff line number Diff line change @@ -101,7 +101,9 @@ export {
101101 mysql2Integration ,
102102 redisIntegration ,
103103 tediousIntegration ,
104+ // eslint-disable-next-line deprecation/deprecation
104105 nestIntegration ,
106+ // eslint-disable-next-line deprecation/deprecation
105107 setupNestErrorHandler ,
106108 postgresIntegration ,
107109 prismaIntegration ,
Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ export {
124124 mysql2Integration ,
125125 redisIntegration ,
126126 tediousIntegration ,
127+ // eslint-disable-next-line deprecation/deprecation
127128 nestIntegration ,
129+ // eslint-disable-next-line deprecation/deprecation
128130 setupNestErrorHandler ,
129131 postgresIntegration ,
130132 prismaIntegration ,
Original file line number Diff line number Diff line change @@ -101,7 +101,9 @@ export {
101101 mysql2Integration ,
102102 redisIntegration ,
103103 tediousIntegration ,
104+ // eslint-disable-next-line deprecation/deprecation
104105 nestIntegration ,
106+ // eslint-disable-next-line deprecation/deprecation
105107 setupNestErrorHandler ,
106108 postgresIntegration ,
107109 prismaIntegration ,
Original file line number Diff line number Diff line change 1+ import { nestIntegration as nestIntegrationAlias } from '@sentry/node' ;
2+
13export * from '@sentry/node' ;
24
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+
313export { init } from './sdk' ;
414
515export {
You can’t perform that action at this time.
0 commit comments