instrumentToolCall
@forge/monorepo / backend/src / instrumentToolCall
Function: instrumentToolCall()
instrumentToolCall<
T>(deps,input,call):Promise<T>
Defined in: backend/src/telemetry/instrument.ts:224
Time a tool call. Same shape, and the same deliberate absence of arguments and results.
Type Parameters
T
T
Parameters
deps
metrics
now?
() => number
telemetry
input
runId?
string
tenantId
string
toolName
string
call
() => Promise<T>
Returns
Promise<T>