Skip to content
module@warp-drive/utilities/handlers

Function addTraceHeader() ​

ts
function addTraceHeader(headers: Headers): Headers;

Defined in: -private/handlers/utils.ts:60

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.