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

Function recordThrottled

apps/sim/lib/monitoring/metrics.ts:166–172  ·  view source on GitHub ↗
(labels: { provider: string; tool: string; reason: ThrottleReason })

Source from the content-addressed store, hash-verified

164 })
165 },
166 recordThrottled(labels: { provider: string; tool: string; reason: ThrottleReason }) {
167 enqueue('Throttled', 1, StandardUnit.Count, {
168 Provider: labels.provider,
169 Tool: labels.tool,
170 Reason: labels.reason,
171 })
172 },
173 recordUpstreamRateLimited(labels: { tool: string; key: string }) {
174 enqueue('UpstreamRateLimited', 1, StandardUnit.Count, {
175 Tool: labels.tool,

Callers

nothing calls this directly

Calls 1

enqueueFunction · 0.70

Tested by

no test coverage detected