Skip to content

Documentation / @warp-drive/utilities / handlers / addTraceHeader

Function: addTraceHeader()

ts
function addTraceHeader(headers): Headers;

Defined in: utilities/src/-private/handlers/utils.ts:49

Adds the X-Amzn-Trace-Id header to support observability tooling around request routing.

This makes use of the TAB_ID and TAB_ASSIGNED to enable tracking the browser tab of origin across multiple requests.

Follows the template: Root=1-${now}-${uuidv4};TabId=1-${epochSeconds}-${tab-uuid}

Parameters

headers

Headers

Returns

Headers

Released under the MIT License.