Skip to content

Custom panic handler #243

Open
Open
@drimpact

Description

@drimpact

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions