UNPKG

@tanstack/offline-transactions

Version:

Offline-first transaction capabilities for TanStack DB

31 lines (30 loc) 1.2 kB
export interface SpanAttrs { [key: string]: string | number | boolean | undefined; } interface WithSpanOptions { parentContext?: any; } /** * Lightweight span wrapper with error handling. * No-op implementation - telemetry has been removed. * * By default, creates spans at the current context level (siblings). * Use withNestedSpan if you want parent-child relationships. */ export declare function withSpan<T>(name: string, attrs: SpanAttrs, fn: (span: any) => Promise<T>, _options?: WithSpanOptions): Promise<T>; /** * Like withSpan but propagates context so child spans nest properly. * No-op implementation - telemetry has been removed. */ export declare function withNestedSpan<T>(name: string, attrs: SpanAttrs, fn: (span: any) => Promise<T>, _options?: WithSpanOptions): Promise<T>; /** * Creates a synchronous span for non-async operations * No-op implementation - telemetry has been removed. */ export declare function withSyncSpan<T>(name: string, attrs: SpanAttrs, fn: (span: any) => T, _options?: WithSpanOptions): T; /** * Get the current tracer instance * No-op implementation - telemetry has been removed. */ export declare function getTracer(): null; export {};