File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/src Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import './instrument';
33
44// Import other modules
55import { HttpAdapterHost , NestFactory } from '@nestjs/core' ;
6- import { SentryGlobalGenericFilter } from '@sentry/nestjs/setup' ;
6+ import { SentryGlobalFilter } from '@sentry/nestjs/setup' ;
77import { AppModule } from './app.module' ;
88
99const PORT = 3030 ;
@@ -12,7 +12,7 @@ async function bootstrap() {
1212 const app = await NestFactory . create ( AppModule ) ;
1313
1414 const { httpAdapter } = app . get ( HttpAdapterHost ) ;
15- app . useGlobalFilters ( new SentryGlobalGenericFilter ( httpAdapter as any ) ) ;
15+ app . useGlobalFilters ( new SentryGlobalFilter ( httpAdapter as any ) ) ;
1616
1717 await app . listen ( PORT ) ;
1818}
Original file line number Diff line number Diff line change @@ -115,15 +115,6 @@ class SentryGlobalFilter extends BaseExceptionFilter {
115115Catch ( ) ( SentryGlobalFilter ) ;
116116export { SentryGlobalFilter } ;
117117
118- /**
119- * Global filter to handle exceptions and report them to Sentry.
120- *
121- * This filter is a generic filter that can handle both HTTP and GraphQL exceptions.
122- *
123- * @deprecated `SentryGlobalGenericFilter` is deprecated. Use the `SentryGlobalFilter` instead. The `SentryGlobalFilter` is a drop-in replacement.
124- */
125- export const SentryGlobalGenericFilter = SentryGlobalFilter ;
126-
127118/**
128119 * Set up a root module that can be injected in nest applications.
129120 */
You can’t perform that action at this time.
0 commit comments