-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: sentry doesn't catch exceptions from flexible backend #3074
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I am not convinced by the metadata filter api usage, see comment below :)
@@ -11,6 +11,10 @@ export class GlobalExceptionFilter implements GqlExceptionFilter { | |||
) {} | |||
|
|||
catch(exception: unknown) { | |||
return this.catchException(exception); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@@ -27,61 +20,10 @@ import { WorkspaceModule } from './workspace/workspace.module'; | |||
ConfigModule.forRoot({ | |||
isGlobal: true, | |||
}), | |||
GraphQLModule.forRoot<YogaDriverConfig>({ | |||
context: ({ req }) => ({ req }), | |||
GraphQLModule.forRootAsync<YogaDriverConfig>({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to have extracted its own service, it was weird to have the dynamic schema at the "root" in app.module.ts
558d2c2
to
49d41d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
As conditional schema creation is outside Nest.JS "flow" we have to manually instantiate the exception filters properly send the errors to Sentry
Fix #2916