From 4ec21d0a07c0010c1ae288f398032b50a809846d Mon Sep 17 00:00:00 2001 From: WonyuChoi Date: Thu, 18 Jul 2024 21:12:00 +0900 Subject: [PATCH] =?UTF-8?q?config:=20sentry=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 3 +++ src/main/resources/application.properties | 6 ++++++ 2 files changed, 9 insertions(+) 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