recordApprovalWait
@forge/monorepo / backend/src / recordApprovalWait
Function: recordApprovalWait()
recordApprovalWait(
deps,input):void
Defined in: backend/src/telemetry/instrument.ts:272
Record how long a run waited for a human.
Not a wrapper, because the wait is not a function call: the run is suspended, the process may have exited, and the decision arrives in a different request entirely. So this is called when the decision lands, with both timestamps — the only shape that can measure a wait spanning a deploy.
Often the longest span in a trace, and the one that most needs to be visibly not the platform's latency.
Parameters
deps
metrics
telemetry
input
decidedAt
string
decision
string
interactionId
string
requestedAt
string
runId
string
tenantId
string
traceparent?
string
Returns
void