RED-10508: activate tracing

This commit is contained in:
maverickstuder 2024-11-22 12:18:15 +01:00
parent 7070c8847d
commit 2d5ab7045f
2 changed files with 14 additions and 1 deletions

View File

@ -18,7 +18,7 @@ configurations {
val springBootVersion = "3.2.0"
val springCloudVersion = "2022.0.5"
val springSecurityVersion = "6.4.1"
val springSecurityVersion = "6.2.2"
val testcontainersVersion = "1.20.0"
dependencies {
@ -36,6 +36,9 @@ dependencies {
implementation("com.knecon.fforesight:keycloak-commons:0.30.0") {
exclude(group = "com.knecon.fforesight", module = "tenant-commons")
}
implementation("com.knecon.fforesight:tracing-commons:0.5.0")
implementation("com.knecon.fforesight:lifecycle-commons:0.7.0")
implementation("com.knecon.fforesight:tenant-commons:0.31.0")
implementation("com.knecon.fforesight:swagger-commons:0.7.0")
implementation("ch.qos.logback:logback-classic")

View File

@ -63,3 +63,13 @@ keyword-service:
url: "http://keyword-extraction-service:8080"
cors.enabled: true
management:
tracing:
enabled: ${TRACING_ENABLED:false}
sampling:
probability: ${TRACING_PROBABILITY:1.0}
otlp:
tracing:
endpoint: ${OTLP_ENDPOINT:http://otel-collector-opentelemetry-collector.otel-collector:4318/v1/traces}