1.3.0 • Published 3 years ago

apollo-sentry-link v1.3.0

Weekly downloads
302
License
MIT
Repository
github
Last release
3 years ago

Apollo Sentry Link

A simple Apollo Link to record GraphQL queries as breadcrumbs in Sentry to aid debugging.

Behaviour

When added to an Apollo Client this will log GraphQL requests as they are made as breadcrumbs in Sentry. It records the query name, type (query or mutation) and the names of any fragments used.

In development this information is logged to the console instead.

Usage

Add the link to your Apollo Client.

import ApolloSentryLink from 'apollo-sentry-link'

...

const client = new ApolloClient({
  link: ApolloLink.from([
    ApolloSentryLink,
    createHttpLink({ uri: "/graphql" })
  ]),
})
1.3.0

3 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago