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.

12 lines (11 loc) 601 B
import { type AxiosInstance, type AxiosRequestConfig, type AxiosResponse } from 'axios'; import { HttpOptions } from './types'; type GetPayload = (config: AxiosRequestConfig, res?: AxiosResponse) => object; /** * Wraps an axios instance to add tracing and span tracking * @param axios - The axios instance to wrap * @param options - Configuration options for HTTP tracing * @returns The wrapped axios instance with span tracking */ export declare const traceAxios: (client: AxiosInstance, { ignoreTraceRoutes, traceHeaderKey, getPayload, }?: HttpOptions<GetPayload>) => AxiosInstance; export {};