Skip to content

Commit

Permalink
add instrument file
Browse files Browse the repository at this point in the history
  • Loading branch information
swantzter committed Jul 2, 2024
1 parent faa8824 commit 6fe0945
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/instrument.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as Sentry from '@sentry/node'
import { SENTRY_DSN } from './config'
import { logger } from './services/logger'

if (SENTRY_DSN) {
logger.info('Sentry enabled')
Sentry.init({
dsn: SENTRY_DSN,
integrations: [
Sentry.anrIntegration()
],
tracesSampleRate: 1.0
})
}

0 comments on commit 6fe0945

Please sign in to comment.