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

Function recordUpstreamRateLimited

apps/sim/lib/monitoring/metrics.ts:173–178  ·  view source on GitHub ↗
(labels: { tool: string; key: string })

Source from the content-addressed store, hash-verified

171 })
172 },
173 recordUpstreamRateLimited(labels: { tool: string; key: string }) {
174 enqueue('UpstreamRateLimited', 1, StandardUnit.Count, {
175 Tool: labels.tool,
176 Key: labels.key,
177 })
178 },
179 recordQueueWait(durationMs: number, labels: { provider: string; reason: QueueReason }) {
180 enqueue('QueueWaitDuration', durationMs, StandardUnit.Milliseconds, {
181 Provider: labels.provider,

Callers

nothing calls this directly

Calls 1

enqueueFunction · 0.70

Tested by

no test coverage detected