Skip to content

Instantly share code, notes, and snippets.

@rimiti
Created October 1, 2019 14:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rimiti/141b6718e9a8c56cd4380c7269df6a04 to your computer and use it in GitHub Desktop.
Save rimiti/141b6718e9a8c56cd4380c7269df6a04 to your computer and use it in GitHub Desktop.
Example to capture a Sentry exception
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