Skip to content

Commit

Permalink
decrease sample rate
Browse files Browse the repository at this point in the history
  • Loading branch information
inductor committed May 7, 2023
1 parent 56fac90 commit b1664f4
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -598,11 +598,13 @@ class SeichiAssist extends JavaPlugin() {

Sentry.init(options => {
options.setDsn("https://[email protected]/2");
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
options.setTracesSampleRate(1.0);
// パフォーマンスモニタリングに使うトレースサンプルの送信割合
// tracesSampleRateを1.0にすると全てのイベントが送られるため、送りすぎないように調整する必要がある
options.setTracesSampleRate(0.25);
// When first trying Sentry it's good to see what the SDK is doing:
options.setDebug(true);

// どのサーバーからイベントが送られているのかを判別する識別子
options.setEnvironment(SeichiAssist.seichiAssistConfig.getServerId);
});

Expand Down

0 comments on commit b1664f4

Please sign in to comment.