import type { Span } from './tracer'; /** * Get the active span from the current async context */ export declare function getActiveSpan(): Span | undefined; /** * Set the active span in the current async context * Uses enterWith to set the span in the current execution context */ export declare function setActiveSpan(span: Span | undefined): void; /** * Run a function with a span as the active span * This is the recommended way to set active spans for async operations */ export declare function runWithSpan(span: Span, fn: () => T): T; /** * Run an async function with a span as the active span * This is the recommended way to set active spans for async operations */ export declare function runWithSpanAsync(span: Span, fn: () => Promise): Promise; //# sourceMappingURL=context.d.ts.map