graphql-hive / graphql-hive/envelop
Feedback for “useSentry”
- Dominant language
- No language data
- Stars
- 827
- Forks
- 132
- PR merge metrics
- No merged PRs in 30d
Description
Hi everyone
I have been wondering for a few hours how to manage errors with Sentry
I want to avoid reporting USER_NOT_FOUND on the Login or INCORRECT_PASSWORD
or validation fileds
- https://pothos-graphql.dev/docs/plugins/validation
- GraphQLError and ZodError
` new GraphQLError('User not registered', {
extensions: {
code: 'USER_NOT_FOUND',
},
})`
#DOC
https://the-guild.dev/graphql/envelop/plugins/use-sentry
- skipError (default: ignored EnvelopError) - Indicates whether or not to skip Sentry exception reporting for a given error. By default, this plugin skips all EnvelopError errors and does not report it to Sentry.
but
```
/**
* Indicates whether or not to skip Sentry exception reporting for a given error.
* By default, this plugin skips all `GraphQLError` errors and does not report it to Sentry.
*/
skipError?: (args: Error) => boolean;
```
I would like to use GraphQLError to report with Sentry when you really need
how I have to use the skipError function
If someone can help me at the confused
thx
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the useSentry documentation and the skipError option, then compare the documented default for EnvelopError with the shown GraphQLError type. A complete documentation change would explain how to handle USER_NOT_FOUND, INCORRECT_PASSWORD, validation errors, GraphQLError, and ZodError reporting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- documentation, observability
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100