Skip to content

Commit 52ad216

Browse files
committed
Remove SentryGlobalGenericFilter
1 parent 82b867a commit 52ad216

File tree

2 files changed

+2
-11
lines changed
  • dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/src
  • packages/nestjs/src

2 files changed

+2
-11
lines changed

dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import './instrument';
33

44
// Import other modules
55
import { HttpAdapterHost, NestFactory } from '@nestjs/core';
6-
import { SentryGlobalGenericFilter } from '@sentry/nestjs/setup';
6+
import { SentryGlobalFilter } from '@sentry/nestjs/setup';
77
import { AppModule } from './app.module';
88

99
const 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
}

packages/nestjs/src/setup.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,6 @@ class SentryGlobalFilter extends BaseExceptionFilter {
115115
Catch()(SentryGlobalFilter);
116116
export { 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
*/

0 commit comments

Comments
 (0)