@account-kit/infra
Version:
adapters for @aa-sdk/core for interacting with alchemy services
25 lines (24 loc) • 990 B
TypeScript
/**
* Remove the tracking headers. This is used in our split transport to ensure that we remove the headers that
* are not used by the other systems.
*
* @param {unknown} x The headers to remove the tracking headers from
*/
export declare function mutateRemoveTrackingHeaders(x?: unknown): void;
/**
* Update the headers with the trace header and breadcrumb.
*
* These trace headers are used in the imply ingestion pipeline to trace the request.
* And the breadcrumb is used to get finer grain details in the trace.
*
* Then there are the trace headers that are part of the W3C trace context standard.
*
* @param {string} crumb The crumb to add to the breadcrumb
* @returns {Function} A function that updates the headers
*/
export declare function headersUpdate(crumb: string): (x: Record<string, string>) => {
traceparent: `00-${string}-${string}-${string}`;
tracestate: string;
"X-Alchemy-Client-Breadcrumb": string;
"X-Alchemy-Client-Trace-Id": string;
};