From 6c6d7d0f9ba9fbaa677cd7e9a9c4a19244a61c19 Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Thu, 19 Oct 2023 14:03:59 +0200 Subject: Add spring-cloud-sleuth for tracing - add tracing dependency - configure both b3 and w3c trace propagation formats to have interoperability between spring-boot 2 (sleuth) and spring-boot 3 (micrometer) tracing Issue-ID: AAI-3668 Change-Id: I429247444715186be562d009f0d6a6f6ede7e1c3 Signed-off-by: Fiete Ostkamp --- .classpath | 6 --- aai-resources/.classpath | 63 ---------------------- aai-resources/.gitignore | 2 + aai-resources/pom.xml | 19 ++++++- .../src/main/resources/application.properties | 8 ++- 5 files changed, 26 insertions(+), 72 deletions(-) delete mode 100644 .classpath delete mode 100644 aai-resources/.classpath diff --git a/.classpath b/.classpath deleted file mode 100644 index c0592e8..0000000 --- a/.classpath +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/aai-resources/.classpath b/aai-resources/.classpath deleted file mode 100644 index fadd195..0000000 --- a/aai-resources/.classpath +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/aai-resources/.gitignore b/aai-resources/.gitignore index a8f03c5..47d0f72 100644 --- a/aai-resources/.gitignore +++ b/aai-resources/.gitignore @@ -14,3 +14,5 @@ bundleconfig-local/etc/logback.xml *.iml **/dbedgerules/** **/oxm/** +**/.classpath +.classpath \ No newline at end of file diff --git a/aai-resources/pom.xml b/aai-resources/pom.xml index 4336d67..c7a32ab 100644 --- a/aai-resources/pom.xml +++ b/aai-resources/pom.xml @@ -98,8 +98,8 @@ true - 1.6.8 + 2020.0.2 @@ -310,6 +310,14 @@ org.springframework.boot spring-boot-starter-hateoas + + org.springframework.cloud + spring-cloud-starter-sleuth + + + org.springframework.cloud + spring-cloud-sleuth-zipkin + io.micrometer micrometer-spring-legacy @@ -712,6 +720,13 @@ pom import + + org.springframework.cloud + spring-cloud-dependencies + ${spring-cloud.version} + pom + import + @@ -983,7 +998,7 @@ org.jacoco jacoco-maven-plugin - + **/*WebSecurityConfig.* diff --git a/aai-resources/src/main/resources/application.properties b/aai-resources/src/main/resources/application.properties index 66a8e53..adf899a 100644 --- a/aai-resources/src/main/resources/application.properties +++ b/aai-resources/src/main/resources/application.properties @@ -4,9 +4,15 @@ info.build.name=resources info.build.description=Resources Microservice info.build.version=1.1.0 -spring.application.name=Resources Microservice +spring.application.name=aai-resources spring.jersey.type=filter spring.main.allow-bean-definition-overriding=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 server.servlet.context-path=/ spring.autoconfigure.exclude=\ -- cgit 1.2.3-korg