@clipboard-health/execution-context
Version:
A lightweight Node.js utility for managing execution contexts and metadata aggregation using AsyncLocalStorage.
12 lines (11 loc) • 322 B
TypeScript
export type Metadata = Record<string, unknown>;
export interface ExecutionContext {
/**
* The class/file/service that originated the thread that owns this context
*/
source: string;
/**
* Additional contextual information associated with this execution context
*/
metadata: Metadata;
}