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.
8 lines (7 loc) • 366 B
TypeScript
/**
* Higher-order function that wraps a function with trace context
* @param fn - Function to wrap with trace context
* @param traceId - Optional trace ID to use (will generate new one if not provided)
* @returns Wrapped function that maintains trace context
*/
export declare function withTrace<T extends (...args: any[]) => any>(fn: T, traceId?: string): T;