summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-02-28 16:30:00 +0100
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-02-28 16:30:00 +0100
commit0d67f83c546449bfc01cdce13b48f47a022de363 (patch)
treea779446457d5b1559e6b0578da240157377b7183
parentb5c15a4baafeac466c1565f2237d6f8cdaf9fd72 (diff)
Add tracing to model-loader
Issue-ID: AAI-3789 Change-Id: I7ded82e560e07da74883e6a5d7cc61835470d55c Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
-rw-r--r--pom.xml17
-rw-r--r--src/main/resources/application.properties11
2 files changed, 28 insertions, 0 deletions
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.port=9500
#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