-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1969 from GiganticMinecraft/add_sentry
Fix scalafmt
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,7 @@ import com.github.unchama.seichiassist.task.global._ | |
import com.github.unchama.util.{ActionStatus, ClassUtils} | ||
import io.chrisdavenport.log4cats.slf4j.Slf4jLogger | ||
import io.sentry.Sentry | ||
import io.sentry.SentryLevel; | ||
import io.sentry.SentryLevel | ||
import org.bukkit.Bukkit | ||
import org.bukkit.ChatColor._ | ||
import org.bukkit.entity.{Entity, Player, Projectile} | ||
|
@@ -597,7 +597,9 @@ class SeichiAssist extends JavaPlugin() { | |
SeichiAssist.seichiAssistConfig = Config.loadFrom(this) | ||
|
||
Sentry.init(options => { | ||
options.setDsn("https://[email protected]/2"); | ||
options.setDsn( | ||
"https://[email protected]/2" | ||
); | ||
// パフォーマンスモニタリングに使うトレースサンプルの送信割合 | ||
// tracesSampleRateを1.0にすると全てのイベントが送られるため、送りすぎないように調整する必要がある | ||
options.setTracesSampleRate(0.25); | ||
|