diff --git a/Makefile b/Makefile index 8f7d6c8..387226d 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,2 @@ -build-image: - podman build -f Dockerfile -t edge-service:latest --build-arg SERVICE_ROOT=. +git_hash: + @git rev-parse --short HEAD diff --git a/build.gradle b/build.gradle index 7fe096a..f63330e 100644 --- a/build.gradle +++ b/build.gradle @@ -3,6 +3,7 @@ plugins { id 'org.springframework.boot' version '3.3.3' id 'io.spring.dependency-management' version '1.1.6' id 'idea' + id "io.sentry.jvm.gradle" version "4.11.0" } group = 'dev.mars3142.fhq' diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 6a2d6b2..e4bd203 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -12,6 +12,15 @@ server: include-message: on_param include-stacktrace: on_param +sentry: + dsn: https://354321d371291036cffcdb5b1a72fd6e@o394865.ingest.us.sentry.io/4507718826262528 + environment: edge-service + + # Set traces_sample_rate to 1.0 to capture 100% + # of transactions for tracing. + # We recommend adjusting this value in production. + tracesSampleRate: 1.0 + spring: application: name: edge-service diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 10c72a0..cf5f2ee 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -2,7 +2,7 @@ - + utf8 ${CONSOLE_LOG_PATTERN} @@ -11,14 +11,13 @@ - + - + -