Add tracing to model-loader
Issue-ID: AAI-3789
Change-Id: I7ded82e560e07da74883e6a5d7cc61835470d55c
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
diff --git a/pom.xml b/pom.xml
index a311908..9b4c510 100644
--- a/pom.xml
+++ b/pom.xml
@@ -44,6 +44,13 @@
<type>pom</type>
<scope>import</scope>
</dependency>
+ <dependency>
+ <groupId>org.springframework.cloud</groupId>
+ <artifactId>spring-cloud-dependencies</artifactId>
+ <version>${spring-cloud.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
</dependencies>
</dependencyManagement>
@@ -52,6 +59,7 @@
<nexusproxy>https://nexus.onap.org</nexusproxy>
<docker.location>${basedir}/target</docker.location>
<spring-boot.version>2.4.13</spring-boot.version>
+ <spring-cloud.version>2020.0.2</spring-cloud.version>
<apache.commons-text.version>1.10.0</apache.commons-text.version>
<commons-compress.version>1.22</commons-compress.version>
<hamcrest-all.version>1.3</hamcrest-all.version>
@@ -214,6 +222,7 @@
</build>
</profile>
</profiles>
+
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
@@ -322,6 +331,14 @@
<artifactId>commons-text</artifactId>
<version>${apache.commons-text.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.springframework.cloud</groupId>
+ <artifactId>spring-cloud-starter-sleuth</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.cloud</groupId>
+ <artifactId>spring-cloud-sleuth-zipkin</artifactId>
+ </dependency>
<!-- Test dependencies -->
<dependency>
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 7273277..d3b4f45 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -12,6 +12,17 @@
#server.ssl.keyStoreType=
#server.ssl.keyAlias=
+spring.application.name=model-loader
+
+spring.sleuth.enabled=false
+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
+spring.sleuth.web.skip-pattern=/aai/util.*
+
server.tomcat.threads.max=200
# The minimum number of threads always kept alive
server.tomcat.threads.min-spare=25