add release version to sentry ci process

This commit is contained in:
Amruth Pillai
2022-12-02 23:16:48 +01:00
parent e36fbb5f64
commit ea2aee2d25
9 changed files with 917 additions and 7 deletions

View File

@ -23,9 +23,12 @@ const bootstrap = async () => {
// Sentry Error Logging
const sentryDSN = configService.get<string>('logging.sentryDSN');
const version = configService.get<string>('app.version');
if (sentryDSN) {
Sentry.init({
dsn: sentryDSN,
release: version,
tracesSampleRate: 1.0,
enabled: process.env.NODE_ENV === 'production',
});