/** * Tracing operations for the v-next Postgres observability domain. * * Event-sourced: a span is written when it starts and again when it ends, so a * running span is visible before its result exists. The two rows differ in * `endedAt` (part of the primary key), so they coexist; reads collapse them * back to one span per `(traceId, spanId)`. */ import type { BatchCreateSpansArgs, BatchDeleteTracesArgs, CreateSpanArgs, GetSpansArgs, GetSpansResponse, GetSpanArgs, GetSpanResponse, GetTraceArgs, GetTraceResponse, GetTraceLightResponse } from '@mastra/core/storage'; import type { DbClient } from '../../../client.js'; export declare function createSpan(client: DbClient, schema: string, args: CreateSpanArgs): Promise; export declare function batchCreateSpans(client: DbClient, schema: string, args: BatchCreateSpansArgs): Promise; export declare function getSpans(client: DbClient, schema: string, args: GetSpansArgs): Promise; export declare function getSpan(client: DbClient, schema: string, args: GetSpanArgs): Promise; export declare function getTrace(client: DbClient, schema: string, args: GetTraceArgs): Promise; export declare function getTraceLight(client: DbClient, schema: string, args: GetTraceArgs): Promise; /** * Delete traces by traceId, cascading to trace-linked signal events * (metrics, logs, scores, feedback). Signal rows with a NULL traceId are * never affected. When the optional tenant scope (`organizationId` / * `resourceId`) is set, every DELETE additionally requires the row's tenant * columns to match. */ export declare function batchDeleteTraces(client: DbClient, schema: string, args: BatchDeleteTracesArgs): Promise; /** Truncate the span_events table. */ export declare function dangerouslyClearTracing(client: DbClient, schema: string): Promise; //# sourceMappingURL=tracing.d.ts.map