Skip to content

Commit

Permalink
Add NPM package version to initial scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhobbs committed Sep 13, 2024
1 parent a5b738f commit e29e66e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions node-src/errorMonitoring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ import * as Sentry from '@sentry/node';
export default (environment: string) => {
Sentry.init({
dsn: 'https://4fa173db2ef3fb073b8ea153a5466d28@o4504181686599680.ingest.us.sentry.io/4507930289373184',
sampleRate: 1.0,
sampleRate: 1,
environment,
enabled: process.env.DISABLE_ERROR_MONITORING !== 'true',
enableTracing: false,
integrations: [],
initialScope: {
tags: {
version: process.env.npm_package_version,
},
},
});
}
};

0 comments on commit e29e66e

Please sign in to comment.