Skip to content

Commit

Permalink
Merge pull request #8 from virtualidentityag/CARITAS-244-enable-micro…
Browse files Browse the repository at this point in the history
…meter-tracing

feat: enable micrometer tracing
  • Loading branch information
tkuzynow authored Jul 24, 2024
2 parents d70dfcf + 4e5eddd commit a927974
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@
<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>

<!-- OpenApi/Swagger dependencies -->
<dependency>
<groupId>org.openapitools</groupId>
Expand Down
9 changes: 8 additions & 1 deletion 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.).
app.base.url=https://<host>
spring.application.name=agency-service
# Currently active profile
spring.profiles.active=@activeSpringProfile@
spring.main.allow-bean-definition-overriding=true
Expand Down Expand Up @@ -88,4 +89,10 @@ management.health.probes.enabled=true
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
spring.jwt.auth.converter.principal-attribute: preferred_username
spring.jwt.auth.converter.principal-attribute: preferred_username


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 a927974

Please sign in to comment.