Skip to content

Commit a1661b4

Browse files
authored
Add Sentry (#91)
DSN contained in k8s secrets
1 parent 60b0c7a commit a1661b4

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

build.gradle.kts

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ configurations {
1010
dependencies {
1111
implementation("org.springframework.boot:spring-boot-starter-webflux")
1212
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
13+
implementation("io.sentry:sentry-spring-boot-starter-jakarta:6.15.0")
14+
implementation("io.sentry:sentry-logback:6.15.0")
1315

1416
testImplementation("io.kotest:kotest-runner-junit5-jvm:5.5.4")
1517
testImplementation("io.kotest:kotest-assertions-core-jvm:5.5.4")

helm_deploy/hmpps-integration-api/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ generic-service:
2727
namespace_secrets:
2828
hmpps-integration-api:
2929
APPINSIGHTS_INSTRUMENTATIONKEY: "APPINSIGHTS_INSTRUMENTATIONKEY"
30+
SENTRY_DSN: "SENTRY_DSN"
3031

3132
allowlist:
3233
office: "217.33.148.210/32"

src/main/resources/application.yml

+3
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ services:
6161
password: Y2xpZW50c2VjcmV0Cg==
6262
probation-offender-search:
6363
base-url: http://localhost:4002
64+
65+
sentry:
66+
traces-sample-rate: "0.05"

0 commit comments

Comments
 (0)