@adikari/apollo-sentry-plugin-serverless
v1.0.5
Published
Capture apollo server errors in Sentry
Downloads
18
Maintainers
Readme
Apollo Server Sentry Plugin
Apollo Server plugin to capture GraphQL errors and report to sentry
Installation
$ yarn add @adikari/apollo-sentry-plugin-serverless @sentry/serverless apollo-server-lambda
How to use
Add the plugin in the list of plugins while instantiating the plugin
The sentry must be configured in lambda in order for this plugin to work. Checkout the sentry document to learn how to do so. https://docs.sentry.io/platforms/node/guides/aws-lambda/
new ApolloServer({
...
plugins: [SentryPluginCaptureException()]
})