Distributed Tracing: OpenTelemetry, Zipkin, Jaeger and Micrometer Tracing
Learn Distributed Tracing: OpenTelemetry, Zipkin, Jaeger and Micrometer Tracing (Phase 10 · Observability and Monitoring (Essential), Microservices) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Distributed tracing concepts • A trace follows one request across services; it is made of spans : a span = one operation (an HTTP handler, a DB query, a Kafka publish/consume) with start/end time, attributes (tags), events and a parent span id . All spans of a request share a trace id . Context is propagated in headers: W3C Trace Context traceparent: 00-<traceId>-<spanId>-01 (B3 for Zipkin legacy). • Tracing answers: where was the time spent? , which downstream call failed? , what is the dependency graph? . Metrics tell you that something is slow; traces show where ; logs show why (correlated...