1.0.1 • Published 3 years ago

apollo-sentry-plugin v1.0.1

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

Sentry Plugin

A Sentry Plugin for Apollo Server which implements performance and error tracking.

import { getApolloSentryPlugin } from 'apollo-sentry-plugin'

// Checks that you have an env var SENTRY_DSN and fails if you don't, or if it's of an invalid syntax.
const apolloSentryPlugin = getApolloSentryPlugin(`My Apollo Server`)

const server = new ApolloServer({
	typeDefs,
	resolvers,
	dataSources,
	csrfPrevention: true,
	// Here we go.
	plugins: [apolloSentryPlugin]
})

Why?

Because while there are a few articles on how to do this, somehow I still found it painful to do it the first time around, and I'm a fan of fixing every problem once.

Credits

Took bits and pieces from the following docs and articles:

1.0.1

3 years ago

1.0.0-rc6

3 years ago

1.0.0

3 years ago

1.0.0-rc7

3 years ago

1.0.0-rc8

3 years ago

1.0.0-rc9

3 years ago

1.0.0-rc10

3 years ago

1.0.0-rc11

3 years ago

1.0.0-rc5

3 years ago

1.0.0-rc4

3 years ago

1.0.0-rc3

3 years ago

1.0.0-rc2

3 years ago

1.0.0-rc1

3 years ago