RecordToolError increments tool_errors_total for the given tool. No-op when m is nil.
(provider, model, toolLabel string)
| 159 | // RecordToolError increments tool_errors_total for the given |
| 160 | // tool. No-op when m is nil. |
| 161 | func (m *Metrics) RecordToolError(provider, model, toolLabel string) { |
| 162 | if m == nil { |
| 163 | return |
| 164 | } |
| 165 | m.ToolErrorsTotal.WithLabelValues(provider, model, toolLabel).Inc() |
| 166 | } |
| 167 | |
| 168 | // RecordStreamBufferDropped increments stream_buffer_dropped_total |
| 169 | // once per dropped event. No-op when m is nil. |