Alchemy Logo

headersUpdate

function 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.

ParameterTypeDescription

crumb

string

The crumb to add to the breadcrumb

A function that updates the headers

(x): object;

ParameterType

x

Record<string, string>

object

NameTypeDefault value

traceparent

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

tracestate

string

X-Alchemy-Client-Breadcrumb

string

X-Alchemy-Client-Trace-Id

string

traceHeader.parentId

Was this page helpful?