1.0.5 • Published 3 years ago

@adikari/apollo-sentry-plugin-serverless v1.0.5

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

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()]
})