diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 101ed4b..9abe431 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -1,3 +1,4 @@ +logging.pattern.level: "%5p [${spring.application.name},%X{traceId:-},%X{spanId:-}]" management: endpoint: @@ -6,6 +7,12 @@ management: health.enabled: true endpoints.web.exposure.include: prometheus, health, metrics metrics.export.prometheus.enabled: ${monitoring.enabled:false} + tracing: + sampling: + probability: 1.0 + otlp: + tracing: + endpoint: http://otel-collector:4318/v1/traces info: description: Tenant User Management Service @@ -14,6 +21,8 @@ server: port: 8080 spring: + application: + name: tenant-user-management datasource: url: jdbc:postgresql://${PSQL_HOST:localhost}:${PSQL_PORT:5432}/${PSQL_DATABASE:master}?ApplicationName=${spring.application.name:}&cachePrepStmts=true&useServerPrepStmts=true&rewriteBatchedStatements=true driverClassName: org.postgresql.Driver @@ -73,8 +82,6 @@ spring: liquibase: change-log: classpath:/db/changelog/db.changelog-master.yaml enabled: true - application: - name: tenant-user-management data: redis: host: ${REDIS_HOST:localhost}