Pcornel
Browse topics
Options
Recent
Favorites
Observability · Technical reference

Distributed Tracing

Direct answer

Distributed tracing follows a request across services as a trace made of spans (operations with timing, attributes and parent/child links), propagated by trace context headers.

When to use this

Use it to find where latency or errors occur in multi-service requests.

First 30 seconds

1. Find a slow trace in the backend (Jaeger/Tempo) for the service.

2. Look for the longest span and gaps.

3. Broken trace? check traceparent header propagation.

4. Error spans and attributes.

5. Link to logs by trace_id.

Operational verification

request → root span → context propagated → child spans → exported → assembled trace

Evidence · next step

Common failures are broken context propagation, clock skew, spans ended too early/late, excessive or missing attributes, head sampling dropping rare errors and assuming a slow child span proves the downstream service is the root cause. Preserve the first divergent observation and repeat the same bounded verification after remediation.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
What not to infer

Common failures are broken context propagation, clock skew, spans ended too early/late, excessive or missing attributes, head sampling dropping rare errors and assuming a slow child span shows the downstream service is the root cause.

Platform / version applicability
OpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformOpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines · Observability owns trace instrumentation/pipeline/query mechanics. Service/application Domains own whether the traced operation produced correct business or infrastructure state.
Scope / prerequisiteUse it to find where latency or errors occur in multi-service requests.
What next?3 suggested next steps
Child topics (this level)2
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification workflow Verify boundary

Start from a trace/request ID, inspect the critical path and error spans, then correlate service logs/metrics using shared identifiers and timestamps. Confirm sampling policy and propagation headers/context at the boundary where the trace becomes fragmented.

Step 2 Failure signatures and limits Narrow the fault

Common failures are broken context propagation, clock skew, spans ended too early/late, excessive or missing attributes, head sampling dropping rare errors and assuming a slow child span shows the downstream service is the root cause.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

test · 1
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Every hop must propagate context (W3C traceparent), or traces break. Sampling keeps costs down — make sure error traces are kept.

Key checks
  • traceparent — first check for this topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool check config prometheus.yml — config valid
ReferenceWhat it is1 section · depth on demand

Operating model

Distributed Tracing follows a request across process/service boundaries using a trace ID and spans that represent timed operations. Parent-child relationships describe causal structure, while attributes/events add dimensions. Context propagation is the critical continuity mechanism; without it, separate spans cannot be assembled reliably.

ReferenceHow it works1 section · depth on demand

In depth

Distributed tracing follows a single request as it passes through multiple services, recording each step as a span with timing and metadata. Traces show where latency and errors occur in microservice and multi-tier architectures, which metrics and logs alone cannot pinpoint.

ConceptMeaning
TraceThe full journey of one request
SpanOne operation (HTTP call, DB query) with start/end and attributes
Context propagationTrace ID passed between services (W3C traceparent header)
SamplingRecording a subset of traces (head-based or tail-based)

Tools: OpenTelemetry for instrumentation; Jaeger, Grafana Tempo, Zipkin or commercial APM back ends for storage and analysis.

Value comes from correlation: put the trace ID in logs, link exemplars from latency metrics to traces, and use tail-based sampling to keep slow and failed traces while discarding most successful ones.

ReferenceImportant terms & boundaries1 section · depth on demand

Scope map

  • Trace/span model
  • Parent-child relationships
  • Context propagation
  • Attributes/events
  • Sampling
  • Trace/log/metric correlation
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

OpenTelemetry Current stable SDKsPropagate trace context across HTTP calls with W3C traceparent.

Assumptions: Both services use an OpenTelemetry SDK with default propagators.

export OTEL_PROPAGATORS=tracecontext,baggage
# outgoing request header added by the SDK:
traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01

Expected output

OpenTelemetry Current stable SDKscurl -s -H 'traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01' http://checkout:8080/healthz -o /dev/null -w "%{http_code}\n"

Expected state: The downstream span appears in the same trace ID as the caller.

200
# trace view: 4bf92f3577b34da6a3ce929d0e0e4736
#   frontend  GET /cart        120 ms
#     checkout GET /healthz     3 ms
If the downstream service starts a new trace ID, a proxy or SDK dropped the traceparent header. Illustrative authored output: field layout matches the tool, values will differ in your environment.
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-29 · otherOpenTelemetry / Prometheus / Grafana ecosystem OpenTelemetry current documentation

Documentation verification: confirms the upstream model used by the Topic. It does not assert local production behavior.

Basis: https://opentelemetry.io/docs/concepts/context-propagation/ · confidence 92%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
distributed tracingtrace spanOpenTelemetry tracing
Embedded reference data

Quick lookup tables

Distributed Tracing verification boundary matrix

A compact lookup separating intent, owning component state, effective state and consumer-visible outcome for Distributed Tracing.

BoundaryInspectHealthy interpretationDo not infer
IntentTrace/span modelIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeParent-child relationships / Context propagationOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateAttributes/eventsIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeSamplingThe original bounded check succeeds in the same time windowProduction correctness outside this scope
Depth when you need it

Deep reference

Design & tradeoffs

Scope

Observability owns trace instrumentation/pipeline/query mechanics. Service/application Domains own whether the traced operation produced correct business or infrastructure state.

Confirmation

Confirm action

Continue?