Skip to content

Commit

Permalink
Merge pull request #1082 from chromaui/jmhobbs/cap-2280-disable-sentr…
Browse files Browse the repository at this point in the history
…y-in-dev

Do not run Sentry in dev
  • Loading branch information
jmhobbs authored Oct 7, 2024
2 parents 1f55db6 + 57eadbb commit 1a85a9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node-src/errorMonitoring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ Sentry.init({
dsn: 'https://4fa173db2ef3fb073b8ea153a5466d28@o4504181686599680.ingest.us.sentry.io/4507930289373184',
sampleRate: 1,
environment: process.env.SENTRY_ENVIRONMENT,
enabled: process.env.DISABLE_ERROR_MONITORING !== 'true',
enabled:
process.env.DISABLE_ERROR_MONITORING !== 'true' &&
process.env.SENTRY_ENVIRONMENT !== 'development',
enableTracing: false,
integrations: [],
initialScope: {
Expand Down

0 comments on commit 1a85a9e

Please sign in to comment.