Created
October 1, 2019 14:26
-
-
Save rimiti/141b6718e9a8c56cd4380c7269df6a04 to your computer and use it in GitHub Desktop.
Example to capture a Sentry exception
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Sentry = require('@sentry/node'); | |
Sentry.init({ dsn: process.env.SENTRY_DSN, environment: 'staging' }); | |
Sentry.captureException(new Error('Test from local')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment