Skip to content

Commit

Permalink
feat: enable distributed tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuzynow committed Jul 26, 2024
1 parent eb95223 commit 6c433f0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,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>


<!-- Test dependencies -->
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file contains general application properties.
# All properties that are environment specific are in their related property file (like database login data, logging level, etc.).
#Spring
spring.application.name=video-service
spring.main.allow-bean-definition-overriding=true
# Base URL of the application
app.base.url=https://<host>
Expand Down Expand Up @@ -81,3 +82,7 @@ spring.jwt.auth.converter.principal-attribute: preferred_username

springdoc.api-docs.enabled=false
logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG
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 6c433f0

Please sign in to comment.