Skip to content

Commit be22993

Browse files
authored
Suggest not to use SentryGlobalGraphQLFilter in newer SDK versions (#11832)
1 parent 94f8615 commit be22993

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

platform-includes/getting-started-use/javascript.nestjs.mdx

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ import { SentryGlobalFilter } from "@sentry/nestjs/setup";
7373
export class AppModule {}
7474
```
7575

76-
**Note:** In NestJS + GraphQL applications replace the `SentryGlobalFilter` with the `SentryGlobalGraphQLFilter`.
76+
{/* TODO(v9): Remove this note. */}
77+
78+
**Note:** If you have a NestJS + GraphQL application and you are using the `@sentry/nestjs` SDK version `8.38.0` or earlier, replace the `SentryGlobalFilter` with the `SentryGlobalGenericFilter`.
79+
In SDK versions `8.39.0` and above, the `SentryGlobalGenericFilter` is deprecated because the `SentryGlobalFilter` will handle GraphQL contexts automatically.
7780

7881
By default, exceptions with status code 4xx are not sent to Sentry. If you still want to capture these exceptions, you can do so manually with `Sentry.captureException()`:
7982

0 commit comments

Comments
 (0)