Skip to content

Commit 213f6f1

Browse files
committed
deploy[sentry]: sentry 추가
1 parent d8f1588 commit 213f6f1

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.github/workflows/CI-CD_Pipeline.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ jobs:
264264
PROD_DATASOURCE_USERNAME=root
265265
PROD_DATASOURCE_PASSWORD=${{ secrets.DB_PASSWORD }}
266266
# 추후 validate 변경
267-
PROD_JPA_HIBERNATE_DDL_AUTO=update
267+
PROD_JPA_HIBERNATE_DDL_AUTO=create
268268
269269
PROD_REDIS_HOST=redis
270270
PROD_REDIS_PORT=6379
@@ -276,6 +276,9 @@ jobs:
276276
send_email_address=${{ secrets.SEND_EMAIL_ADDRESS }}
277277
email_address=${{ secrets.EMAIL_ADDRESS }}
278278
send_email_password=${{ secrets.EMAIL_PASSWORD }}
279+
280+
PROD_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
281+
279282
EOF
280283
281284
# 파일 권한 최소화

backend/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ dependencies {
5757
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
5858
implementation 'org.springframework.session:spring-session-data-redis'
5959

60+
// Logging & Monitoring (로깅/모니터링)
61+
implementation 'io.sentry:sentry-spring-boot-starter:7.16.0'
62+
implementation 'io.sentry:sentry-logback:7.16.0'
63+
6064
// Development Tools (개발 도구)
6165
compileOnly 'org.projectlombok:lombok'
6266
developmentOnly 'org.springframework.boot:spring-boot-devtools'

backend/src/main/resources/application-prod.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,9 @@ spring:
3535
host: ${PROD_QDRANT_HOST}
3636
port: ${PROD_QDRANT_PORT}
3737
collection-name: legal_cases
38-
vector-size: 1536
38+
vector-size: 1536
39+
sentry:
40+
dsn: ${PROD_SENTRY_DSN}
41+
environment: "dev"
42+
release: "[email protected]"
43+
send-default-pii: true

0 commit comments

Comments
 (0)