UNPKG

@mastra/core

Version:
9 lines • 528 B
import type { Mastra } from '../mastra/index.js'; /** * Exporters buffer spans (the storage exporter waits up to 5 s before it * writes), so a trace read right after a run finds nothing. Flush first, but * only when there is a stored trace to read. Best-effort and time-limited: a * failed or hung flush only means the trace read falls back. */ export declare function flushBeforeTraceRead(mastra: Mastra | undefined, traceId: string | null | undefined): Promise<void>; //# sourceMappingURL=flush-before-trace-read.d.ts.map