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.
11 lines (10 loc) • 431 B
TypeScript
import { Request, RequestHandler } from 'express';
import { HttpOptions } from './types';
interface Response {
status: number;
headers?: Record<string, string | undefined>;
body?: unknown;
}
type GetPayload = (config: Request, res?: Response) => object;
export declare const traceMiddleware: ({ ignoreTraceRoutes, traceHeaderKey, messageHeaderKey, getPayload, }?: HttpOptions<GetPayload>) => RequestHandler;
export {};