Skip to main content
Version: latest (master)

Function: encodeCallStackNode()

encodeCallStackNode(node): WireCallStackNode

Defined in: src/audit/encode.ts:54

Translate a CallStackNode into its wire JSON object form.

Recurses through children. Optional fields (latencyMs, children) are dropped when undefined or — for children — empty, so the resulting object is the minimal payload the gateway accepts.

Parameters

node

CallStackNode

Returns

WireCallStackNode