‹ Field GuideLetter 18 · The firefly that arrived late
“Where can we see fireflies tonight?” Michi checks the pond catalog and Koko reads the forecast. The catalog’s first call fails. Its retry succeeds. The guest gets a good answer, and the failed call still has a story to tell.
The glass plate
Each operation carries a trace ID and its own span ID. A neighbor’s note happens to reuse the failed call’s span ID. It belongs to another trace. It also links to the failed call, so the link names both the trace and the span. On the glass plate, the retry records the request as its parent and the preceding backoff as a link. OpenTelemetry trace data model
Two readers and one clock
Both readers start at 10 ms. The catalog spends 20 ms on the failed attempt, 10 ms in backoff and 50 ms on its retry. Weather takes 60 ms. The gate waits for both and opens at 90 ms. Synthesis and delivery take another 34 ms. The guest waits 124 ms.
Turn the weather wheel to 95 ms. The weather reader ends at 105 ms and the guest gets the answer at 139 ms. Adding 35 ms to a parallel branch added 15 ms to the guest’s wait. In this fixture the explicit wait-all rule tells us which results block delivery.
Two jars for five requests
Our head sampler picks two requests from their IDs at entry. The tail sampler temporarily holds five requests and later chooses two for export. It gives first claim to a trace with a failed span, then keeps the slowest remaining request. A successful root arrives for T1 at 124 ms. Its failed child reaches the collector at 230 ms. A decision at 140 ms misses it.
At 240 ms, with five temporary slots, the error earns T1 a jar. T3 earns the other with a 220 ms root. We know the expected span counts because we wrote this fictional workload. A real collector has to make its decision with the evidence it has received. OpenTelemetry sampling
The Dapper team used traces to follow work across services. Agent workflows add operations such as model generations, tool calls and handoffs. The OpenAI Agents SDK documents how to group multiple runs in one workflow trace. Dapper paper · Ben Sigelman’s talk · OpenAI Agents SDK tracing
Play at the observatory · Read the OTLP JSON encoding