@adikari/apollo-sentry-plugin-serverless

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i @adikari/apollo-sentry-plugin-serverless

Weekly Downloads

2

Version

1.0.5

License

MIT

Unpacked Size

4.29 kB

Total Files

6

Last publish

Collaborators

  • adikari