graphql-go / graphql-go/graphql
Custom panic handler
Open
enhancement
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 845
- PR merge metrics
- No merged PRs in 30d
Description
When a resolver panics, graphql recovers and puts the error into the generated graphql, which is really nice.
I would like to capture these panics to an external system so that I can identify issues with my code. Is there anyway to provide a function which gets called with the captured panics? If not, do you think it is a common use case and hence worth adding?
Just to be clear I don't think it should change how graphql-go handles the panic, it just allows people to record the panic happened
Contributor guide
Assessment
This issue has not been assessed yet.