Sleuth provided distributed tracing for Spring Boot microservices, tagging requests with trace and span IDs so a single transaction could be followed across service boundaries; it's been replaced by OpenTelemetry in Spring Boot 3.x.
In a checkout flow spanning an order service, payment service, and inventory service, tracing lets you see one trace ID stitching together every hop, immediately showing which service added the most latency to a slow request.
<!-- Spring Boot 3: Sleuth is replaced by Micrometer Tracing -->
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing-bridge-brave</artifactId> <!-- or -bridge-otel -->
</dependency>
<dependency>
<groupId>io.zipkin.reporter2</groupId>
<artifactId>zipkin-reporter-brave</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
# application.yml
management:
tracing:
sampling:
probability: 1.0
zipkin:
tracing:
endpoint: http://zipkin:9411/api/v2/spans
# Migration notes: remove spring-cloud-starter-sleuth; trace ids now use the
# W3C "traceparent" header by default instead of Sleuth's B3 headers.A concise interview answer is
Sleuth used to add trace and span IDs so you could follow a request across microservices in logs and tracing tools. It's no longer supported in Spring Boot 3.x -- the replacement is OpenTelemetry, typically wired in through Micrometer Tracing, which gives the same distributed tracing capability plus a broader, vendor-neutral observability standard.
Last updated: 11 November 2026
Previous question: What are the basic commands to build a Docker image, and where do you store Docker images?
Next question: What is Micrometer Tracing in Spring Boot 3?