Skip to content

Commit

Permalink
Use Sentry Spring starter
Browse files Browse the repository at this point in the history
  • Loading branch information
schnapster committed Dec 10, 2023
1 parent 4bcadc3 commit f3cc100
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 123 deletions.
1 change: 1 addition & 0 deletions baymax-secrets.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ logging:

sentry:
dsn: ""
logging.enabled: true

baymax:
discord-token: ""
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ dependencies {
implementation libs.jda
implementation libs.logback
implementation libs.sentry
implementation libs.sentry.spring.starter
implementation libs.snakeyaml
implementation libs.caffeine
implementation libs.emojis
Expand Down
3 changes: 3 additions & 0 deletions gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ com.vdurmont:emoji-java:5.1.1=compileClasspath,productionRuntimeClasspath,runtim
io.micrometer:micrometer-commons:1.12.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
io.micrometer:micrometer-observation:1.12.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
io.sentry:sentry-logback:7.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
io.sentry:sentry-spring-boot-jakarta:7.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
io.sentry:sentry-spring-boot-starter-jakarta:7.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
io.sentry:sentry-spring-jakarta:7.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
io.sentry:sentry:7.0.0=compileClasspath,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
jakarta.annotation:jakarta.annotation-api:2.1.1=compileClasspath,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
net.dv8tion:JDA:5.0.0-beta.18=compileClasspath,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencyResolutionManagement {
library("jda", "net.dv8tion:JDA:$jdaVersion")
library("logback", "ch.qos.logback", "logback-classic").withoutVersion()
library("sentry", "io.sentry:sentry-logback:$sentryVersion")
library("sentry-spring-starter", "io.sentry:sentry-spring-boot-starter-jakarta:$sentryVersion")
library("snakeyaml", "org.yaml", "snakeyaml").withoutVersion()
library("caffeine", "com.github.ben-manes.caffeine", "caffeine").withoutVersion()
library("emojis", "com.vdurmont:emoji-java:$emojiVersion")
Expand Down
84 changes: 0 additions & 84 deletions src/main/java/space/npstr/baymax/config/SentryConfiguration.java

This file was deleted.

This file was deleted.

6 changes: 6 additions & 0 deletions src/main/resources/baymax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ logging:

sentry:
dsn: ""
logging.enabled: false
in-app-includes:
- "space.npstr"
- "dev.capybaralabs"
logging:
minimum-event-level: warn

baymax:
status-type: 1
Expand Down

0 comments on commit f3cc100

Please sign in to comment.