From e73d109404113bd6d6f12749559c19adf3b3e5a8 Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Thu, 18 Apr 2024 15:12:19 +0200 Subject: Add tracing to babel - add cloud-sleuth tracing dependency Issue-ID: AAI-3829 Change-Id: I0eee4b79359e0cea679e4a044863c4f4b91e3425 Signed-off-by: Fiete Ostkamp --- pom.xml | 21 ++++++++++++++++++++- src/main/resources/application.properties | 9 +++++++++ src/test/resources/application.properties | 1 + 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 src/test/resources/application.properties diff --git a/pom.xml b/pom.xml index a390f8a..74b7965 100644 --- a/pom.xml +++ b/pom.xml @@ -90,6 +90,7 @@ 1.9.4 1.2.11 3.0.13 + 2020.0.2 1.22 1.15 @@ -375,8 +376,26 @@ jakarta.activation-api ${jakarta.activation.version} + + org.springframework.cloud + spring-cloud-starter-sleuth + + + org.springframework.cloud + spring-cloud-sleuth-zipkin + - + + + + org.springframework.cloud + spring-cloud-dependencies + ${spring-cloud.version} + pom + import + + + diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 6ea9b37..f1d54df 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -6,3 +6,12 @@ spring.main.allow-bean-definition-overriding=true server.servlet.context-path=/services/babel-service logging.config=${CONFIG_HOME}/logback.xml tosca.mappings.config=${CONFIG_HOME}/tosca-mappings.json + +spring.application.name=aai-babel +spring.sleuth.enabled=true +spring.zipkin.baseUrl=http://jaeger-collector.istio-system:9411 +spring.sleuth.messaging.jms.enabled = false +spring.sleuth.trace-id128=true +spring.sleuth.sampler.probability=1.0 +spring.sleuth.propagation.type=w3c, b3 +spring.sleuth.supports-join=false \ No newline at end of file diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties new file mode 100644 index 0000000..2f24f8b --- /dev/null +++ b/src/test/resources/application.properties @@ -0,0 +1 @@ +spring.sleuth.enabled=true \ No newline at end of file -- cgit 1.2.3-korg