UNPKG

unnbound-logger-sdk

Version:

A structured logging library with TypeScript support using Pino. Provides consistent, well-typed logging with automatic logId, workflowId, traceId, and deploymentId tracking across operational contexts.

13 lines (12 loc) 404 B
import { AsyncLocalStorage } from 'async_hooks'; export interface UnnboundContext { traceId?: string; spanId?: string; messageId?: string; } interface UnnboundStorage extends AsyncLocalStorage<object> { getStore<T>(): T | undefined; } export declare const storage: UnnboundStorage; export declare const withStorage: <T>(data: object, callback: () => Promise<T>) => Promise<T>; export {};