diff --git a/build.gradle.kts b/build.gradle.kts index 5560314..f799688 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -37,6 +37,7 @@ val nimbusJoseJwtVersion = "9.47" val jjwtVersion = "0.12.6" val wiremockVersion = "3.9.2" val wiremockSpringBootVersion = "2.1.3" +val micrometerVersion = "1.4.0" dependencies { implementation("org.springframework.boot:spring-boot-starter") @@ -47,6 +48,7 @@ dependencies { implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310") implementation("org.openapitools:jackson-databind-nullable:$openApiToolsVersion") implementation("com.google.code.findbugs:jsr305:$findbugsVersion") + implementation("io.micrometer:micrometer-tracing-bridge-otel:$micrometerVersion") compileOnly("org.projectlombok:lombok") annotationProcessor("org.projectlombok:lombok") diff --git a/gradle.lockfile b/gradle.lockfile index 8088d6b..9c7b60d 100644 --- a/gradle.lockfile +++ b/gradle.lockfile @@ -1,6 +1,7 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. +aopalliance:aopalliance:1.0=compileClasspath ch.qos.logback:logback-classic:1.5.11=compileClasspath ch.qos.logback:logback-core:1.5.11=compileClasspath com.auth0:java-jwt:4.4.0=compileClasspath @@ -16,10 +17,24 @@ com.fasterxml.jackson:jackson-bom:2.17.2=compileClasspath com.google.code.findbugs:jsr305:3.0.2=compileClasspath com.nimbusds:nimbus-jose-jwt:9.47=compileClasspath io.jsonwebtoken:jjwt-api:0.12.6=compileClasspath +io.micrometer:context-propagation:1.1.2=compileClasspath io.micrometer:micrometer-commons:1.13.6=compileClasspath io.micrometer:micrometer-core:1.13.6=compileClasspath io.micrometer:micrometer-jakarta9:1.13.6=compileClasspath io.micrometer:micrometer-observation:1.13.6=compileClasspath +io.micrometer:micrometer-tracing-bridge-otel:1.4.0=compileClasspath +io.micrometer:micrometer-tracing:1.3.5=compileClasspath +io.opentelemetry.instrumentation:opentelemetry-instrumentation-api-incubator:2.9.0-alpha=compileClasspath +io.opentelemetry.instrumentation:opentelemetry-instrumentation-api:2.9.0=compileClasspath +io.opentelemetry.semconv:opentelemetry-semconv:1.25.0-alpha=compileClasspath +io.opentelemetry:opentelemetry-api:1.37.0=compileClasspath +io.opentelemetry:opentelemetry-context:1.37.0=compileClasspath +io.opentelemetry:opentelemetry-extension-trace-propagators:1.37.0=compileClasspath +io.opentelemetry:opentelemetry-sdk-common:1.37.0=compileClasspath +io.opentelemetry:opentelemetry-sdk-logs:1.37.0=compileClasspath +io.opentelemetry:opentelemetry-sdk-metrics:1.37.0=compileClasspath +io.opentelemetry:opentelemetry-sdk-trace:1.37.0=compileClasspath +io.opentelemetry:opentelemetry-sdk:1.37.0=compileClasspath io.swagger.core.v3:swagger-annotations-jakarta:2.2.22=compileClasspath io.swagger.core.v3:swagger-core-jakarta:2.2.22=compileClasspath io.swagger.core.v3:swagger-models-jakarta:2.2.22=compileClasspath diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index c46c6d4..6b101ed 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -6,7 +6,7 @@ source="spring.application.name"/> + value="%d{yyyy-MM-dd HH:mm:ss.SSS} [${appName:-}] [%X{externalUserId:-}] [%X{traceId:-}] %-5level [%15.15t] [%-40.40logger{39}] - %msg%n"/>