mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
Ignore GraphQLError in Sentry plugin (#555)
This commit is contained in:
parent
e8579d00c4
commit
c47df8338a
1 changed files with 2 additions and 1 deletions
|
|
@ -139,12 +139,13 @@ export const graphqlHandler = (options: GraphQLHandlerOptions): RouteHandlerMeth
|
|||
// It's the readiness check
|
||||
return args.operationName === 'readiness';
|
||||
},
|
||||
skipError: isGraphQLError,
|
||||
}),
|
||||
useSentryUser(),
|
||||
useErrorHandler(({ errors, context }): void => {
|
||||
for (const error of errors) {
|
||||
// Only log unexpected errors.
|
||||
if (isGraphQLError(error) && isGraphQLError(error.originalError)) {
|
||||
if (isGraphQLError(error)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue