Skip to content

Documentation / @ember-data/request-utils / handlers / addTraceHeader

Function: addTraceHeader()

ts
function addTraceHeader(headers): Headers;

Defined in: warp-drive-packages/utilities/declarations/-private/handlers/utils.d.ts:20

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.