diff --git a/build.gradle b/build.gradle index 073f31b9..4c811f5f 100644 --- a/build.gradle +++ b/build.gradle @@ -50,6 +50,9 @@ dependencies { // Swagger implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2' + + // sentry + implementation 'io.sentry:sentry-spring-boot-starter-jakarta:7.9.0' } tasks.named('test') { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index a506ec78..72e1e54e 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -20,3 +20,9 @@ scheduler.pool.size=5 scheduler.threadNamePrefix=Scheduler- scheduler.awaitTerminationSeconds=30 scheduler.waitForTasksToCompleteOnShutdown=true +# Sentry +sentry.dsn=${SENTRY_DSN} +sentry.exception-resolver-order= -2147483647 +sentry.max-request-body-size= always +sentry.send-default-pii= true +sentry.traces-sample-rate= 1.0