-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[NestJS] Sentry Error filter doesn't work in GraphQL context #13473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For now I think the solution here should be to just add an additional variation of the In the future, we can think about providing a factory-method that takes an arbitrary filter and proxies it with some logic to report errors. Instead of |
I've met same issue, but withSentry could not resolve it
|
@ralexandr Did you put the decorator on the catch directly or on top of the AllExceptionsFilter? |
Hey everyone, we added a new In our e2e sample applications, this seems to resolve this issue, but let us know if you run into any further troubles. |
hi @nicohrubec, have a question, is there any Filter that can work with graphql + rest? I did some test with SentryGlobalGraphQLFilter and with SentryGlobalFilter, but looks like each of them have issues. Also, I tried with SentryGlobalGenericFilter, seems to work OK, but seems that it is logging all the "expected" exceptions in sentry console, which is not what we need. |
@hernandezka what version of the SDK are you on? The current recommended way to set up error filters is outlined here https://docs.sentry.io/platforms/javascript/guides/nestjs/#use - it somewhat recently changed. If you have already followed these docs, would you mind giving a specific example with code that doesn't work as expected? Ideally in a new issue so that we can properly track. (also so that Nico the intern can go back to doing university assignments without being bugged on github 😂) |
@lforst thanks for the quick response! |
Originally posted by @ysuhaas in #12351
The text was updated successfully, but these errors were encountered: