@beignet/core
Version:
Core framework primitives for Beignet
14 lines • 567 B
TypeScript
import { type TraceOperation, type TraceSpan, type TracingPort } from "./index.js";
type MaybePromise<T> = T | Promise<T>;
/**
* Resolve a lazy application context inside a span when the runtime tracing
* port is available independently from that context.
*/
export declare function runWithResolvedTracingContext<Ctx, Result>(args: {
tracing?: TracingPort;
ctx: Ctx | (() => MaybePromise<Ctx>);
operation: TraceOperation;
run(ctx: Ctx, span?: TraceSpan): MaybePromise<Result>;
}): Promise<Result>;
export {};
//# sourceMappingURL=execution.d.ts.map