add sentry logging

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-10-01 00:26:00 +02:00
parent abef2e3eb5
commit 0d0ab011ae
2 changed files with 10 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ plugins {
id 'java' id 'java'
id 'org.springframework.boot' version '3.3.4' id 'org.springframework.boot' version '3.3.4'
id 'io.spring.dependency-management' version '1.1.6' id 'io.spring.dependency-management' version '1.1.6'
id "io.sentry.jvm.gradle" version "4.11.0"
} }
group = 'dev.mars3142.fhq' group = 'dev.mars3142.fhq'

View File

@@ -10,6 +10,15 @@ logging:
com.netflix.eureka: OFF com.netflix.eureka: OFF
com.netflix.discovery: 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: server:
port: ${PORT:8761} port: ${PORT:8761}
shutdown: graceful shutdown: graceful