Telemetry Envelope V1
telemetry-envelope.v1 is the canonical payload produced by SDK workflow-result bridges.
Why it exists
- keeps Go/Python/Node telemetry outputs consistent
- gives control-plane analytics one stable shape to query
- enables user and conversation level tracking with strong trace correlation
Core sections
identity:organization_id,agent_id,user_idtrace:trace_id,conversation_id,request_id,run_id,sampledworkflow:workflow_id, terminal node, status, elapsedusage: prompt/completion/total/reasoning tokens, TTFT, throughput, and token-availability flagsmodel_usage[]: per-model request and token usagetool_usage[]: tool call counts and errorsevent_counts: workflow event histogram
usage.prompt_tokens, usage.completion_tokens, usage.total_tokens, and usage.reasoning_tokens may be null when provider token accounting is unavailable. In those cases, use:
usage.token_metrics_availableusage.token_metrics_sourceusage.llm_nodes_without_usage
nerdstats and raw are optional and intended for deep diagnostics.
Source of truth
See the full contract definition in telemetry-envelope-v1-spec.md.