API Reference
CompactEntry
type CompactEntry = {
dt: number;
seq: number;
source: TraceSource;
} &
| AgentEvent
| StreamEvent
| RequestSnapshot
| RawRequest
| RawSSE;Defined in: observability/tracer.types.ts:102
Compact serialization of a TraceEntry — the on-disk / wire shape. The data
payload is flattened up, and the two redundant fields are dropped: label
(always equals data.type) and the absolute t (reconstruct it from the
document's startedAt + this entry's dt). The in-memory TraceEntry keeps
the richer shape for programmatic access; only JSON output is compacted.
Example: {"seq":2,"dt":7,"source":"agent","type":"turn_start","step":1}.
Type Declaration
| Name | Type | Defined in |
|---|---|---|
dt | number | observability/tracer.types.ts:102 |
seq | number | observability/tracer.types.ts:102 |
source | TraceSource | observability/tracer.types.ts:102 |