diff --git a/build.gradle b/build.gradle index 4a99ff7..7343315 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,7 @@ plugins { id 'java' id 'org.springframework.boot' version '3.3.4' id 'io.spring.dependency-management' version '1.1.6' + id "io.sentry.jvm.gradle" version "4.11.0" } group = 'dev.mars3142.fhq' diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 91d3abf..bb7ba61 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -10,6 +10,15 @@ logging: com.netflix.eureka: OFF com.netflix.discovery: OFF +sentry: + dsn: https://354321d371291036cffcdb5b1a72fd6e@o394865.ingest.us.sentry.io/4507718826262528 + environment: eureka-service + + # Set traces_sample_rate to 1.0 to capture 100% + # of transactions for tracing. + # We recommend adjusting this value in production. + tracesSampleRate: 1.0 + server: port: ${PORT:8761} shutdown: graceful