A checkout request takes longer than usual. The gateway reports the delay, the database reports ordinary query times, and a trace shows a long outbound payment call. It is tempting to name the payment provider as the cause. But the call's measured duration might include a wait for a local connection, a retry after a timeout, or time spent at the provider. The trace has found a boundary at which time passed; it has not identified what consumed that time.
That distinction explains much of the difficulty of distributed diagnosis. A customer experiences one elapsed interval. The system records pieces of it through independently operated services, libraries, networks, and suppliers. Each piece answers a question set by where its instrument was placed. Investigation means discovering which observations belong to the same causal path, then finding a measurement or intervention that separates competing explanations. More telemetry helps only when it makes that distinction possible.
One request, several views of time
The first question is about impact: which requests became slow, and when? Route-level latency distributions and request counts can distinguish a widespread slowdown from a small affected cohort. A percentile describes a population over an interval, however; it is not a request that can be opened in a trace viewer. Conversely, a striking trace can expose a mechanism without showing how often it occurred. Google's SRE guidance distinguishes user-visible symptoms, which are useful for paging, from internal causes that guide diagnosis. That division keeps an investigation anchored to the behavior customers actually experienced.
Following a particular request introduces a different problem. A span records an operation at the point where instrumentation starts and stops. A gateway span may include a downstream call, while a database span measures only a query. Adding their durations double-counts nested work. Parallel child spans overlap; their sum can exceed the parent's elapsed time without any measurement being wrong. Across machines, clock skew can even make a child appear to start before its parent. The OpenTelemetry trace model treats parent identifiers and links as the evidence of relationships, with timestamps describing locally observed intervals.
Fan-out makes the gap between local health and user experience more consequential. When a response waits for several branches, its completion depends on the slowest required branch, not the average branch. Dean and Barroso's The Tail at Scale analyzes how latency variability compounds across large services. Its lesson for diagnosis is narrower than a prescription to optimize every component: a normal average at each dependency can coexist with poor end-to-end tail latency. Investigators need to identify which branch was on the affected request's critical path.
Correlation is a starting point
Return to the checkout example as an illustration, not a documented incident. Suppose a deployment coincides with slower checkouts, and several retained traces show long payment-client spans. Three hypotheses remain: the application waits for a free connection before sending; the provider takes longer to respond; or the client library makes multiple attempts inside what appears to be one call. Each suggests a different mitigation. Raising a provider timeout could worsen a saturated local pool. Enlarging the pool could increase pressure on an already slow provider. Disabling retries could reduce load but expose more failures.
The next observation should be chosen for its power to separate those hypotheses. Measure connection-acquisition time separately from time after a request is sent. Record attempt counts and timeouts with a stable request or trace identifier. If the provider exposes its own processing time, compare that interval with the client's send-to-receive interval. A longer client interval with stable provider processing points toward time outside the provider's measured work, though it cannot by itself distinguish network transit from client-side delay. Compare affected and unaffected versions under similar traffic; a rollback that reverses the symptom strengthens the deployment hypothesis but does not reveal which internal mechanism changed.
This is why incident timelines should distinguish observation from interpretation. “Payment-client spans grew” is an observation. “The provider slowed down” is a hypothesis that needs provider-side or boundary-specific evidence. A shared spike in two services can reflect a common upstream change, a downstream dependency, or feedback through retries. A technically honest report can identify several contributing conditions and state where attribution remains uncertain.
A complete-looking trace may be incomplete
Tracing has a coverage problem that a polished waterfall can conceal. Google's Dapper report made broad deployment and low overhead central design goals for tracing at scale; broad coverage still does not make any collected trace a complete record. A service may propagate trace context without exporting its own span. A child can be absent because instrumentation was missing, a sampler rejected it, export failed, or the query window omitted it. The OpenTelemetry data model notes an especially important asymmetry: an absent parent proves the collected trace is incomplete, but a visible parent does not prove that all its children were collected. A blank interval is therefore not proof that nothing happened.
Sampling changes what traces can establish. Head sampling decides before a request's outcome is known, so it can miss an uncommon slow path. Tail sampling can choose traces after observing latency or errors, but it needs to hold spans while deciding and receive the relevant spans together. Neither recovers work that was never instrumented or spans lost before the decision point. OpenTelemetry's sampling guidance describes these trade-offs. Independently collected request metrics remain necessary to estimate prevalence; selected traces are evidence about possible mechanisms.
The telemetry pipeline is another component of the incident. An exporter queue can fill or retries can expire while the application is under pressure, removing precisely the spans an engineer wants to inspect. OpenTelemetry's Collector resiliency guidance documents these loss modes. A missing span should prompt a check of instrumentation, propagation, sampling, and pipeline health before it becomes part of a causal story.
Spend measurement where a decision changes
Instrumenting every line is neither feasible nor necessarily useful. Each recorded event consumes processing, network, storage, and investigative attention. Prometheus warns that a unique label combination creates a new time series; unbounded values such as customer or request IDs can make metrics costly and difficult to query. Its metric guidance favors bounded dimensions. Per-request correlation belongs in controlled logs or traces when it is needed, with suitable access and retention limits.
The better investment is a measurement at a disputed boundary. A pool-wait timer can distinguish local contention from downstream response time. Separate retry-attempt spans can reveal whether one apparent call was several calls. A queue age measure can reveal a delay between producer and worker that neither service's handler span covers. Each addition should answer a question whose answer would change an operational decision. If it cannot, the data may add cost without improving diagnosis.
Distributed systems remain hard to diagnose because measurements are partial accounts of a path that crosses independent components. The useful discipline is to establish the affected population, reconstruct the recorded causal path, identify the next uncertain interval, and test the alternatives that could explain it. The result may be a cause, a set of contributing conditions, or a clearly bounded uncertainty. All three are more defensible than assigning blame to the longest span.
References
- Google, Monitoring Distributed Systems, Site Reliability Engineering.
- Benjamin H. Sigelman and colleagues, Dapper, a Large-Scale Distributed Systems Tracing Infrastructure, Google technical report, 2010.
- Jeffrey Dean and Luiz André Barroso, The Tail at Scale, Communications of the ACM, 2013.
- OpenTelemetry, Traces Data Model, Sampling, and Collector Resiliency.
- Prometheus, Metric and Label Naming.