diff --git a/pom.xml b/pom.xml index 1a14054..d5e6e40 100644 --- a/pom.xml +++ b/pom.xml @@ -20,6 +20,18 @@ <relativePath/> <!-- lookup parent from repository --> </parent> + <dependencyManagement> + <dependencies> + <dependency> + <groupId>org.springframework.cloud</groupId> + <artifactId>spring-cloud-dependencies</artifactId> + <version>2021.0.8</version> + <type>pom</type> + <scope>import</scope> + </dependency> + </dependencies> + </dependencyManagement> + <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> @@ -76,6 +88,17 @@ <artifactId>hibernate-validator</artifactId> </dependency> + <dependency> + <groupId>org.springframework.cloud</groupId> + <artifactId>spring-cloud-starter-sleuth</artifactId> + <version>3.1.11</version> + </dependency> + <dependency> + <groupId>org.springframework.cloud</groupId> + <artifactId>spring-cloud-starter-zipkin</artifactId> + <version>2.2.8.RELEASE</version> + </dependency> + <!-- OpenApi/Swagger dependencies --> <dependency> <groupId>org.openapitools</groupId> 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