fixing ping-service
This commit is contained in:
@@ -54,6 +54,11 @@ dependencies {
|
||||
// Spring Cloud Consul for service registration and discovery
|
||||
implementation(libs.spring.cloud.starter.consul.discovery)
|
||||
|
||||
// === Caching ===
|
||||
// Caffeine cache for Spring Cloud LoadBalancer (resolves production cache warning)
|
||||
implementation("com.github.ben-manes.caffeine:caffeine")
|
||||
implementation("org.springframework:spring-context-support")
|
||||
|
||||
// === Resilience & Fault Tolerance ===
|
||||
// Resilience4j Circuit Breaker for fault tolerance
|
||||
implementation(libs.resilience4j.spring.boot3)
|
||||
|
||||
@@ -25,12 +25,17 @@ management:
|
||||
probes:
|
||||
enabled: true
|
||||
tracing:
|
||||
enabled: true
|
||||
# Disable tracing by default to avoid Zipkin connection errors
|
||||
enabled: ${TRACING_ENABLED:false}
|
||||
sampling:
|
||||
probability: ${TRACING_SAMPLING_PROBABILITY:1.0}
|
||||
probability: ${TRACING_SAMPLING_PROBABILITY:0.1}
|
||||
zipkin:
|
||||
tracing:
|
||||
endpoint: ${ZIPKIN_TRACING_ENDPOINT:http://zipkin:9411/api/v2/spans}
|
||||
# Only configure endpoint if tracing is explicitly enabled
|
||||
endpoint: ${ZIPKIN_TRACING_ENDPOINT:http://localhost:9411/api/v2/spans}
|
||||
# Configure timeout and connection settings to handle missing Zipkin gracefully
|
||||
connect-timeout: 1s
|
||||
read-timeout: 5s
|
||||
|
||||
# Resilience4j Circuit Breaker Configuration
|
||||
resilience4j:
|
||||
|
||||
Reference in New Issue
Block a user