graphql-hive / graphql-hive/envelop
Sentry plugin - missing key events (parse error, context creation, etc)
- Dominant language
- No language data
- Stars
- 827
- Forks
- 132
- PR merge metrics
- No merged PRs in 30d
Description
Hey there, thanks for the work to date!
I've tried using the `@envelop/sentry` plugin but came to realize it only tracks execution of queries. This means requests which don't reach the execution stage won't be tracked.
Some examples include:
- Failure due to invalid GraphQL syntax
- Failure at context creation time (e.g. auth errors)
---
**To Reproduce**
Steps to reproduce the behavior:
- Create a GraphQL Yoga application using the setup guide
- Add the `@envelop/sentry` plugin
- Make the following GraphQL request
```gql
query query query {
not valid syntax
}
```
**Expected behavior**
The request is tracked in Sentry along with the resulting GraphQLError response.
**Actual behavior**
The request is not tracked.
**Environment:**
Not environment specific
**Additional context**
Happy to contribute!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the @envelop/sentry plugin and reproduce the malformed GraphQL request from the issue, then check how execution events are currently recorded. Done means parse failures and context-creation failures are tracked in Sentry together with the resulting GraphQLError response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, javascript, nodejs
- Domain
- api, observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100