trace:read
trace family
Read one signal trace back by the 24-hex id a response handed its caller in X-Trace-Id: every span that shares it, ordered by startMs, each {spanId, parent, hop, outcome, service, colo, startMs, durMs, offsetMs, mixedClock, sampleInterval}. THREE states, never a fourth: `found` (the spans), `pending` (none written yet — Analytics Engine ingests with a lag, and a hop with no binding writes nothing; this is NEVER "a trace with no hops"), `failed` (the read itself failed, with `error`; a failure is never an empty list). `offsetMs` across two services subtracts two workers' clocks and says so in `mixedClock`. Caps at 200 spans and names the cut in `truncated`; `sampled` is true when Analytics Engine kept a sample. Requires an attested caller (session, world key or staff) — the id is a correlation label, never authority
- Effect
- ask
- Awaits an outcome — the call returns the response below.
- Caller
- session
- The class of authority the caller must already hold, decided from the attested context with no round trip.
- Reversible
- yes
- The effect can be undone by a later call.
- Idempotent
- yes
- Safe to retry as-is.