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';
3
3
4
4
// Import other modules
5
5
import { HttpAdapterHost , NestFactory } from '@nestjs/core' ;
6
- import { SentryGlobalGenericFilter } from '@sentry/nestjs/setup' ;
6
+ import { SentryGlobalFilter } from '@sentry/nestjs/setup' ;
7
7
import { AppModule } from './app.module' ;
8
8
9
9
const PORT = 3030 ;
@@ -12,7 +12,7 @@ async function bootstrap() {
12
12
const app = await NestFactory . create ( AppModule ) ;
13
13
14
14
const { httpAdapter } = app . get ( HttpAdapterHost ) ;
15
- app . useGlobalFilters ( new SentryGlobalGenericFilter ( httpAdapter as any ) ) ;
15
+ app . useGlobalFilters ( new SentryGlobalFilter ( httpAdapter as any ) ) ;
16
16
17
17
await app . listen ( PORT ) ;
18
18
}
Original file line number Diff line number Diff line change @@ -115,15 +115,6 @@ class SentryGlobalFilter extends BaseExceptionFilter {
115
115
Catch ( ) ( SentryGlobalFilter ) ;
116
116
export { SentryGlobalFilter } ;
117
117
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
-
127
118
/**
128
119
* Set up a root module that can be injected in nest applications.
129
120
*/
You can’t perform that action at this time.
0 commit comments