aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-09-06 09:03:36 +0200
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-09-06 13:06:43 +0200
commit2caf8fbef7a20cc4e98975b40d21efc073195b77 (patch)
treeb41ea717c9f14e811b7314eec33ff3b9d2f0ea89 /app
parent2e55f45bc0b1b18c86dc4491ad4ababd6d0468d7 (diff)
Add Micrometer [preferences]montreal
- add Micrometer dependencies - add build.gradle on project root since the Jenkins gradle plugin would otherwise fail Issue-ID: PORTALNG-58 Change-Id: Id3f986a8b98647139b52b397608e95eb94d30d6b Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'app')
-rw-r--r--app/build.gradle10
-rw-r--r--app/src/main/resources/application.yml9
2 files changed, 17 insertions, 2 deletions
diff --git a/app/build.gradle b/app/build.gradle
index ad51bde..d8aff4d 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -36,9 +36,10 @@ repositories {
ext {
problemVersion = '0.27.1'
logstashLogbackVersion = '7.2'
- embedMongoVersion = '4.7.0'
- embedMongoIntegrationVersion = '4.7.0'
+ embedMongoVersion = '4.7.0'
+ embedMongoIntegrationVersion = '4.7.0'
springCloudWiremockVersion = '4.0.3'
+ micrometerVersion = '1.0.0'
}
dependencies {
@@ -52,6 +53,11 @@ dependencies {
implementation "org.zalando:problem:$problemVersion"
implementation "net.logstash.logback:logstash-logback-encoder:$logstashLogbackVersion"
+ implementation(platform("io.micrometer:micrometer-tracing-bom:$micrometerVersion"))
+ implementation("io.micrometer:micrometer-tracing")
+ implementation("io.micrometer:micrometer-tracing-bridge-otel")
+ implementation("io.opentelemetry:opentelemetry-exporter-zipkin")
+
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
diff --git a/app/src/main/resources/application.yml b/app/src/main/resources/application.yml
index d7c6325..ffe174e 100644
--- a/app/src/main/resources/application.yml
+++ b/app/src/main/resources/application.yml
@@ -3,6 +3,8 @@ server:
address: 0.0.0.0
spring:
+ application:
+ name: preferences
jackson:
serialization:
# needed for serializing objects of type object
@@ -36,3 +38,10 @@ management:
enabled: true
java:
enabled: true
+ tracing:
+ enabled: true
+ sampling:
+ probability: 1.0 # sample every request
+ zipkin:
+ tracing:
+ endpoint: http://${COLLECTOR_HOST}:${COLLECTOR_PORT}/api/v2/spans \ No newline at end of file