headersUpdate

1function headersUpdate(crumb): (x) => object;

Defined in: account-kit/infra/src/alchemyTrackerHeaders.ts:51

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.

Parameters

ParameterTypeDescription

crumb

string

The crumb to add to the breadcrumb

Returns

A function that updates the headers

1(x): object;

Parameters

ParameterType

x

Record<string, string>

Returns

object

NameTypeDefault value

traceparent

`00-${string}-${string}-${string}`

tracestate

string

X-Alchemy-Client-Breadcrumb

string

X-Alchemy-Client-Trace-Id

string

traceHeader.parentId