import type { StepBuffer } from '../runtime/step-buffer.js'; /** The ingress point a trace was opened at. Mirrors `traceFields.entryKind`. */ export type TraceEntryKind = 'http' | 'job' | 'cron' | 'test'; export interface TraceContext { /** This trace's id — the `trace.id` of the row opened at the entry. */ readonly id: string; /** The root of the trace tree. Equals `id` for a root trace. */ readonly rootId: string; /** The UTC calendar day the trace opened — the partition its row lives in. */ readonly openedDay: string; /** * Resolves once the opening `INSERT` has settled. The closing `UPDATE` waits * on this so it can never race ahead of the row it means to close. */ readonly persisted: Promise; /** The in-memory `trace_step` buffer flow steps record into — drained at close. */ readonly buffer: StepBuffer; } //# sourceMappingURL=trace-context.d.ts.map