Skip to content

Instantly share code, notes, and snippets.

@rimiti rimiti/sentry.js

Created Oct 1, 2019
What would you like to do?
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
You can’t perform that action at this time.