Skip to content

Commit

Permalink
Merge pull request #1969 from GiganticMinecraft/add_sentry
Browse files Browse the repository at this point in the history
Fix scalafmt
  • Loading branch information
inductor authored May 7, 2023
2 parents d61e5c8 + dd370ca commit cc23022
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
.idea/
*.iml

# VSCode
.vscode

# SBT
/project/target
/project/project
Expand All @@ -15,4 +18,10 @@ localDependencies/spigot-1.12.2.jar
# Docker
docker/spigot/serverfiles/eula.txt

.env
.env

# Metal
.bloop
.metals
project/.bloop/
project/metals.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cc23022

Please sign in to comment.