@mastra/core
Version:
12 lines • 640 B
TypeScript
import type { AnyExportedSpan } from './types/tracing.js';
/** Maximum preview length, before the trailing `…`, including supplied previews. */
export declare const PREVIEW_MAX_LENGTH = 100;
export declare function truncatePreview(text: string, maxLength?: number): string | null;
/** Readable previews of a processed/redacted span. Explicit strings, including
* empty strings, take precedence. Does not mutate the span or retain snapshots. */
export declare function buildSpanPreviews(span: AnyExportedSpan): {
inputPreview: string;
outputPreview: string;
errorPreview: string;
};
//# sourceMappingURL=span-previews.d.ts.map