MCPcopy Index your code
hub / github.com/simstudioai/sim / recordFailed

Function recordFailed

apps/sim/lib/monitoring/metrics.ts:150–157  ·  view source on GitHub ↗
(labels: { provider: string; tool: string; key: string; reason: FailureReason })

Source from the content-addressed store, hash-verified

148 })
149 },
150 recordFailed(labels: { provider: string; tool: string; key: string; reason: FailureReason }) {
151 enqueue('Failed', 1, StandardUnit.Count, {
152 Provider: labels.provider,
153 Tool: labels.tool,
154 Key: labels.key,
155 Reason: labels.reason,
156 })
157 },
158 recordCostCharged(costUsd: number, labels: { provider: string; tool: string }) {
159 // Unit None: CloudWatch has no USD unit; value is dollars.
160 if (costUsd > 0)

Callers

nothing calls this directly

Calls 1

enqueueFunction · 0.70

Tested by

no test coverage detected