(labels: { provider: string; tool: string; reason: ThrottleReason })
| 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, |