Skip to content

Commit

Permalink
Merge pull request #3 from virtualidentityag/CARITAS-244-add-tracing
Browse files Browse the repository at this point in the history
feat: enable distributed tracing
  • Loading branch information
Leandro13Silva13 authored Sep 26, 2024
2 parents 10deb6c + 552cafa commit 52e611b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@
<spring-security-oauth2-test-webmvc-addons.version>3.0.1</spring-security-oauth2-test-webmvc-addons.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2022.0.5</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<!-- Spring Boot dependencies -->
<dependency>
Expand Down Expand Up @@ -118,6 +130,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
<version>3.1.11</version>
</dependency>


<dependency>
Expand Down
7 changes: 6 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Currently active profile
spring.profiles.active=@activeSpringProfile@
spring.main.allow-bean-definition-overriding=true
spring.application.name=message-service

# General app settings
server.port=8080
Expand Down Expand Up @@ -59,6 +58,7 @@ springfox.documentation.swagger.v2.path=${springfox.docuPath}/v2/api-docs
# UserService API
user.service.api.url=<containername>:<port>/users
user.service.api.new.message.notification=${user.service.api.url}/mails/messages/new
user.service.api.new.feedback.message.notification=${user.service.api.url}/mails/messages/feedback/new
user.service.api.liveproxy.url=<containername>:<port>

# CSRF token
Expand Down Expand Up @@ -100,8 +100,13 @@ feature.multitenancy.with.single.domain.enabled=false
management.endpoint.health.enabled=true
management.endpoint.health.show-details=never
management.endpoints.web.exposure.include=health
spring.application.name=message-service
management.health.probes.enabled=true

spring.zipkin.baseUrl: https://localhost:9411/
logging.pattern.level=%5p [${spring.application.name:},%X{traceId:-},%X{spanId:-}]


spring.security.oauth2.resourceserver.jwt.issuer-uri: https://localhost/auth/realms/onlineberatung
spring.security.oauth2.resourceserver.jwt.jwk-set-uri: https://localhost/auth/realms/onlineberatung/protocol/openid-connect/certs
spring.jwt.auth.converter.resource-id: app
Expand Down

0 comments on commit 52e611b

Please sign in to comment.