728x90
Before SpringBoot3
Sleuth(Tracing Configuration) -> Brave(Tracer Library) -> Zipkin
From SpringBoot3
Micrometer(metrics, logs, traces) -> OpenTelemetry(metrics, logs, traces) -> Zipkin
gradle settings
implementation 'io.micrometer:micrometer-observation'
implementation 'io.micrometer:micrometer-tracing-bridge-otel'
implementation 'io.opentelemetry:opentelemetry-exporter-zipkin'
application.properties 설정
#spring.sleuth.sampler.probability=1.0 #SB2
management.tracing.sampling.probability=1.0 #SB3
logging.pattern.level=%5p [${spring.application.name:},%X{traceId:-},%X{spanId:-}] #SB3
- 1.0 -> want to trace every request
- 0.05 -> 5%
how to use in docker-compose
#SPRING.ZIPKIN.BASEURL: http://zipkin-server:9411/ #SB2
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin-server:9411/api/v2/spans #SB3
728x90