The log line that was not wrong

A checkout fails for one request in a few thousand. Each service writes a clean log: the gateway accepted the call, the pricing service returned a value, the inventory check timed out once and retried, the order service recorded a failure. No line lies. Read in sequence from four separate streams, none of them explains why this particular request failed while the next one succeeded. What is missing is the shape of the request — which call waited on which, where the retry happened, how much of the total elapsed time was spent inside a single span.

Reconstructing that shape is what tracing does. The model was written down in April 2010 in a Google Technical Report numbered dapper-2010-1, by Sigelman, Barroso, Burrows and several colleagues. It described a trace tree, spans, and annotations, and set design goals of low overhead, application-level transparency, and ubiquitous deployment. Sampling was part of the design from the beginning, not an afterthought. The report is frequently mislabeled as an ACM, OSDI, or SOCC conference article; the first-hand identifier is a technical report. The primary PDF could not be re-fetched in the environment where this research was done, so the year, authors, and report number were cross-checked against a peer-reviewed retrospective of twenty-five selected WSC papers instead. That sourcing detail matters: the lineage is well established, and the exact venue is not the kind of fact to guess.

What each piece actually specifies

ArtifactOrigin and dateWhat it definesThe common mistake
Dapper trace treeGoogle Technical Report dapper-2010-1, Apr 2010spans, annotations, low overhead, sampling by designcited as a conference paper
W3C Trace ContextFirst Recommendation 2020-02-06; current text 2021-11-23traceparent as version-trace-id-parent-id-trace-flags, plus tracestatecalling 2021 the first publication
OpenTelemetryCNCF project; admitted 2019, incubating 2021, graduated 2026framework and toolkit for traces, metrics, logsdescribed as a storage backend
Span and traceOpenTelemetry Traces documentationshared trace_id, root span without parent, attributes/events/links/statustreating trace-id as user or session identity
SamplingOpenTelemetry Sampling documentationhead versus tail decisions; sampled means processed and exportedequated with dropping noisy logs

Three signals and a definition problem

OpenTelemetry describes itself as an observability framework and toolkit for generating, exporting, and collecting telemetry. Its signals are traces, metrics, and logs. The word signals is worth keeping. The industry phrase three pillars is shorthand, not a term used by the project. More consequential is the sentence that follows in the same document: OpenTelemetry is not an observability backend itself. What arrives is a set of specifications, OTLP, semantic conventions, SDKs, and a Collector — plumbing that governs how telemetry is produced and moved, with nothing to say about where it is stored or how it is queried. Teams that assume the framework includes a query layer tend to discover the gap after instrumentation is already in place.

The observability primer supplies the definitional test: understanding internal state by examining outputs, answering a why question, and covering the unknown unknowns that no dashboard anticipated. That premise requires the application to be instrumented and the telemetry to be emitted. Preset alerts and dashboards pointed at known failure modes remain useful; they are simply a different activity. The primer defines observability and does not publish a parallel definition of monitoring, so claims that one has retired the other carry no standard behind them.

W3C Trace Context is the piece that lets two independently built systems carry the same request identity forward. The first Recommendation became a W3C Recommendation on 6 February 2020. The current document is labeled W3C Recommendation 23 November 2021 and states that it contains only editorial updates since the 2020 version. Reporting 2021 as the year the standard first appeared collapses two distinct facts. The header it defines, traceparent, holds a version, a trace-id, a parent-id, and trace flags; tracestate carries additional values alongside it. A trace-id is a distributed tracing identifier. It is not a user ID, a session ID, or a device ID, and treating it as one pushes identity into telemetry for no engineering gain.

A span is a small contract

The traces documentation defines a span as a unit of work with a name, a parent span ID, start and end timestamps, a Span Context built from Trace ID, Span ID, Trace Flags, and Trace State, plus attributes, events, links, and a status. Spans belonging to one trace share a trace_id. The root span has no parent. A trace is nothing more than that tree, which is why a report from 2010 still reads like a description of the present.

Inside a single trace, the revealing detail is seldom the total duration. It is the child span that waited, the retry that doubled a call, the attribute nobody attached. Here an honest reservation is needed. Tracing answers questions only when somebody guessed which attributes to record in advance. A span tree without business attributes can show that a call was slow while remaining silent about which account or which path was affected. Instrumentation is a design act, and incomplete instrumentation produces confident-looking traces that cannot answer the question the team actually asked.

Sampling is a policy decision

The sampling documentation makes a claim that sounds wrong until it is read closely: high-throughput systems can be well represented by rates of one percent or lower, and sampling is worth considering above roughly one thousand traces per second. One percent standing for the other ninety-nine is a statement about distributions at volume, not a promise about any individual request.

Head sampling decides early, often with consistent probability derived from the trace ID, so a trace is either kept everywhere or dropped everywhere. It is cheap and stateless. Tail sampling waits until most spans have arrived, which makes it possible to retain every trace containing an error, but it requires a stateful component that holds spans until the decision is made, and that component has failure modes of its own. The tradeoff is concrete. Preserving the trace from a rare failure means paying for state; a team that cannot afford that state will occasionally lose exactly the trace it needed. The documentation defines sampled as processed and exported, and rejects the phrase sampling out as a description of the process. Sampling and discarding noisy logs are different operations.

One more piece of genealogy deserves care. A Springer retrospective describes Dapper as having evolved into open source as OpenTelemetry. That is a broad statement about a lineage of ideas, not a claim of product inheritance. Dapper was an internal Google report; OpenTelemetry is a CNCF project. Its project page records acceptance into CNCF on 7 May 2019, incubation on 26 August 2021, and graduation on 11 May 2026. Articles that still call it incubating are two milestones behind.

Where the trace has to cross

A mini-program running inside a host app sends a request across a boundary the team does not own end to end. A shared runtime can carry one set of instrumentation conventions and one exporter configuration, so a correction to semantic conventions lands in a single place rather than being reimplemented in every capability. An open catalog means a capability arriving through it can emit spans shaped like the spans from capabilities already deployed. That is a structural advantage for correlation, not a measured availability figure. No first-hand number exists for span volume or latency inside a hosted mini-program, and inventing one would defeat the argument of this article.

The practical consequence is modest and worth stating plainly. Reliability here comes from agreeing on a trace_id format, choosing sampling deliberately, and accepting that the tail-preserving path costs infrastructure. The shared runtime lowers the cost of spreading those decisions across capabilities. It does not make the decisions, and a trace tree does not become useful on its own.

Sources