/** * Trace operation utilities * Single Responsibility: Execute operations with tracing context */ import { type LogContext } from '@kitiumai/logger'; /** * Trace a test operation with automatic span creation and logging */ export declare function traceTest(operationName: string, operation: (spanId: string) => Promise | T, metadata?: Record, traceContext?: LogContext): Promise; /** * Trace a child operation within a parent span */ export declare function traceChild(parentSpanId: string, operationName: string, operation: (childSpanId: string) => Promise | T, metadata?: Record, traceContext?: LogContext): Promise; /** * Start a new trace context for a test */ export declare function startTestTrace(testName: string): LogContext; /** * End the current trace context * Note: Context is scoped by withLoggingContext; explicit clearing is unnecessary */ export declare function endTestTrace(): void; /** * Run a function within a fresh test trace context */ export declare function withTestTrace(testName: string, function_: () => Promise | T, metadata?: Record): Promise | T; //# sourceMappingURL=trace-operations.d.ts.map