From 2b69b3ee2e9251f6107c5f444d449966d410462c Mon Sep 17 00:00:00 2001 From: tkuzynow Date: Fri, 26 Jul 2024 16:47:26 +0200 Subject: [PATCH] feat: integrate with spring cloud sleuth and zipkin --- pom.xml | 23 +++++++++++++++++++++++ src/main/resources/application.properties | 7 ++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1a14054..d5e6e40 100644 --- a/pom.xml +++ b/pom.xml @@ -20,6 +20,18 @@ + + + + org.springframework.cloud + spring-cloud-dependencies + 2021.0.8 + pom + import + + + + UTF-8 UTF-8 @@ -76,6 +88,17 @@ hibernate-validator + + org.springframework.cloud + spring-cloud-starter-sleuth + 3.1.11 + + + org.springframework.cloud + spring-cloud-starter-zipkin + 2.2.8.RELEASE + + org.openapitools diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 4d07972..f0c93e2 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -7,6 +7,7 @@ spring.main.allow-bean-definition-overriding=true spring.jpa.open-in-view=true spring.jpa.hibernate.ddl-auto=none spring.data.jpa.repositories.bootstrap-mode=default +spring.application.name=statistics-service # General app settings server.port=8080 @@ -77,4 +78,8 @@ management.endpoint.health.show-details=never management.endpoints.web.exposure.include=health management.endpoint.health.probes.enabled=true management.metrics.mongo.command.enabled=false -management.metrics.mongo.connectionpool.enabled=false \ No newline at end of file +management.metrics.mongo.connectionpool.enabled=false + +spring.zipkin.baseUrl= +spring.sleuth.sampler.percentage=1.0 +spring.zipkin.sender.type=web \ No newline at end of file