Skip to content

Commit

Permalink
feat: включение автоматического трейсинга
Browse files Browse the repository at this point in the history
  • Loading branch information
mxseev committed Jul 12, 2022
1 parent 60be09a commit f9e3231
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const exceptionCapturers = [new ConsoleCapturer()]
if (env.sentryDsn && typeof window !== "undefined") {
const sentryCapturer = new SentryNextCapturer({
dsn: env.sentryDsn,
environment: env.sentryEnv
environment: env.sentryEnv,
tracesSampleRate: 0.2
})

exceptionCapturers.push(sentryCapturer)
Expand Down
3 changes: 2 additions & 1 deletion sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const exceptionCapturers = [new ConsoleCapturer()]
if (env.sentryDsn) {
const sentryCapturer = new SentryNextCapturer({
dsn: env.sentryDsn,
environment: env.sentryEnv
environment: env.sentryEnv,
tracesSampleRate: 0.2
})

exceptionCapturers.push(sentryCapturer)
Expand Down

0 comments on commit f9e3231

Please sign in to comment.