Skip to content

Commit

Permalink
#262 設定可能な項目が増えていたので以下を参考に追加
Browse files Browse the repository at this point in the history
  • Loading branch information
keitakn committed Nov 10, 2023
1 parent 4926a3c commit 4ac6902
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sentry.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ import * as Sentry from '@sentry/nextjs';
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
environment: process.env.NEXT_PUBLIC_APP_ENV,
tracesSampleRate: 1.0,
tracesSampleRate: 0.3,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});
9 changes: 9 additions & 0 deletions sentry.edge.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as Sentry from '@sentry/nextjs';

Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
environment: process.env.NEXT_PUBLIC_APP_ENV,
tracesSampleRate: 0.3,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});
4 changes: 3 additions & 1 deletion sentry.server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ import * as Sentry from '@sentry/nextjs';
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
environment: process.env.NEXT_PUBLIC_APP_ENV,
tracesSampleRate: 1.0,
tracesSampleRate: 0.3,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});

0 comments on commit 4ac6902

Please sign in to comment.