Skip to content

Commit 8812842

Browse files
authored
[#190] Sentry 설정 추가 (#191)
* feat(monitoring): Sentry 설정 추가 - 의존성 추가 - dsn key 추가
1 parent 03bbc24 commit 8812842

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,18 @@ dependencies {
9393
implementation 'org.hibernate:hibernate-spatial'
9494
//https://mvnrepository.com/artifact/org.locationtech.jts/jts-core
9595
implementation 'org.locationtech.jts:jts-core:1.19.0'
96-
//logback - cloudwatch
96+
// logback - cloudwatch
9797
implementation group: 'ca.pjer', name: 'logback-awslogs-appender', version: '1.6.0'
9898
// AWS
9999
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
100-
//Slack Notification
100+
// Slack Notification
101101
implementation "net.gpedro.integrations.slack:slack-webhook:1.4.0"
102-
//websocket
102+
// Websocket
103103
implementation 'org.springframework.boot:spring-boot-starter-websocket'
104+
// Sentry
105+
implementation 'io.sentry:sentry-spring-boot-starter:6.17.0'
106+
implementation 'io.sentry:sentry-logback:6.17.0'
107+
104108
//https://velog.io/@saintho/javaxannotationmetawhennotfound
105109
implementation 'com.google.code.findbugs:jsr305:3.0.2'
106110
}

src/main/resources/application.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,9 @@ management:
4949
decorator:
5050
datasource:
5151
p6spy:
52-
enable-logging: true
52+
enable-logging: true
53+
54+
# sentry 설정
55+
sentry:
56+
dsn: ${SENTRY_DSN}
57+
traces-sample-rate: 1.0

0 commit comments

Comments
 (0)