Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ function getGitTag() {
}
}

// Initialize Sentry
if (process.env.SENTRY_DSN) {
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.APP_ENV || 'production',
release: getGitTag(),
integrations: [Sentry.captureConsoleIntegration({ levels: ['error'] })],
});
console.log('Sentry initialized');
} else {
console.log('Sentry DSN not provided, Sentry not initialized');
}

const request = require('request');
Expand Down