Skip to content

Commit

Permalink
Merge pull request #6 from virtualidentityag/CARITAS-244
Browse files Browse the repository at this point in the history
feat: enable distributed tracing
  • Loading branch information
tkuzynow authored Jul 29, 2024
2 parents 8e5255b + 39ea070 commit 9332408
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@
<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.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
Expand Down
10 changes: 9 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
spring.application.name=live-service
spring.main.allow-bean-definition-overriding=true
keycloak.auth-server-url=
keycloak.realm=
Expand Down Expand Up @@ -32,4 +33,11 @@ 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

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 9332408

Please sign in to comment.