Skip to content

Commit

Permalink
chore: fix sentry integration
Browse files Browse the repository at this point in the history
  • Loading branch information
mindrunner committed Jul 13, 2024
1 parent a0d804e commit d86969f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sentry.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ExtraErrorData, RewriteFrames } from '@sentry/integrations'
import { extraErrorDataIntegration, rewriteFramesIntegration } from '@sentry/node'
import * as Sentry from '@sentry/node'
import '@sentry/tracing'

Expand All @@ -10,8 +10,8 @@ Sentry.init({
normalizeDepth: 10,
integrations (integrations) {
return integrations
.concat(new ExtraErrorData())
.concat(new RewriteFrames({ root: process.cwd() }))
.concat(extraErrorDataIntegration)
.concat(rewriteFramesIntegration({ root: process.cwd() }))
}
})

Expand Down

0 comments on commit d86969f

Please sign in to comment.