Spring Boot Tutorial 0/110 lessons ~6 min read Lesson 72
Distributed Tracing
When a request hops 5 services, logs alone won't tell you where the latency went.
Course progress0%
Focus
2 guided sections
Practice signal
Examples included
Career prep
Foundation builder
Introduction
When a request hops 5 services, logs alone won't tell you where the latency went. Distributed tracing stitches spans together via a trace ID. Spring Boot 3 ships Micrometer Tracing with OpenTelemetry support.
Informative example
bash
# pom.xml<dependency><groupId>io.micrometer</groupId><artifactId>micrometer-tracing-bridge-otel</artifactId></dependency><dependency><groupId>io.opentelemetry</groupId><artifactId>opentelemetry-exporter-otlp</artifactId></dependency># application.ymlmanagement:tracing:sampling:probability: 1.0 # 1.0 in dev, 0.05 in prodotel:exporter:otlp:endpoint: http://tempo:4318
Ready to mark this lesson complete?Track your journey across the entire course.