@vtex/api
Version:
VTEX I/O API client
14 lines (13 loc) • 532 B
TypeScript
import { Span } from 'opentracing';
export interface TraceInfo {
traceId?: string;
isSampled: boolean;
}
export declare function getTraceInfo(span?: Span): TraceInfo;
/**
* Do a shallow copy of a headers object and redacts sensitive information.
*
* @param headersObj The headers object
* @param resultFieldsPrefix The prefix that will be added to each field on the result object
*/
export declare const cloneAndSanitizeHeaders: (headersObj: Record<string, any>, resultFieldsPrefix?: string) => Record<string, string>;