Skip to content

Commit

Permalink
Merge pull request #9 from virtualidentityag/CARITAS-244-enable-distr…
Browse files Browse the repository at this point in the history
…ibuted-tracing

feat: enable distributed tracing
  • Loading branch information
tkuzynow authored Jul 26, 2024
2 parents bf20bef + de6da7e commit 28da890
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,14 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing-bridge-otel</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-zipkin</artifactId>
</dependency>

<dependency>
<groupId>org.sonatype.plexus</groupId>
Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Currently active profile
spring.profiles.active=@activeSpringProfile@
spring.application.name=mail-service

# General app settings
server.port=8080
Expand Down Expand Up @@ -77,4 +78,9 @@ management.health.probes.enabled=true
spring.cache.jcache.config=classpath:ehcache.xml

logging.level.net.sf.ehcache=info
springdoc.api-docs.enabled=false
springdoc.api-docs.enabled=false

management.zipkin.tracing.endpoint: http://localhost:9411/api/v2/spans
management.tracing.enabled: true
management.tracing.sampling.probability: 1
logging.pattern.level=%5p [${spring.application.name:},%X{traceId:-},%X{spanId:-}]

0 comments on commit 28da890

Please sign in to comment.