Sentry Monitoring

Plugin published by Jovo Community | 1,321 downloads

Add error monitoring with Sentry.io

jovo-community-plugin-sentry

NPM

Node CI

Overview

This plugin for the Jovo Framework allows you to easily add error monitoring with Sentry to your voice projects.

Platforms

The following platforms are supported:

  • Amazon Alexa
  • Google Assistant
  • Samsung Bixby
  • Twilio Autopilot

Install

Install the plugin into your Jovo project:

npm install jovo-community-plugin-sentry --save

Use the plugin in:

app.js:

app.ts:

Configuration

Refer to the Sentry documentation on Configuration.

Supported configuration values:

  • dsn
  • debug
  • release
  • environment
  • maxBreadcrumbs
  • sampleRate
  • attachStacktrace
  • serverName

config.js or config.ts:

Here is a typical implementation:

  1. In .env file (for local stage and Jovo Webhook) and in lambda environment variables (for all other stages including prod), set the SENTRY_DSN variable:
  1. Set the environment value in config.js or config.ts:

Capture

The plugin will automatically capture exceptions in the code, but you can also access the capture methods from any handler:

License

MIT

Join Our Newsletter

Be the first to get our free tutorials, courses, and other resources for voice app developers.