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

Function recordUsed

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

Source from the content-addressed store, hash-verified

141
142export const hostedKeyMetrics = {
143 recordUsed(labels: { provider: string; tool: string; key: string }) {
144 enqueue('Used', 1, StandardUnit.Count, {
145 Provider: labels.provider,
146 Tool: labels.tool,
147 Key: labels.key,
148 })
149 },
150 recordFailed(labels: { provider: string; tool: string; key: string; reason: FailureReason }) {
151 enqueue('Failed', 1, StandardUnit.Count, {
152 Provider: labels.provider,

Callers

nothing calls this directly

Calls 1

enqueueFunction · 0.70

Tested by

no test coverage detected