RecordStreamBufferDropped increments stream_buffer_dropped_total once per dropped event. No-op when m is nil.
()
| 168 | // RecordStreamBufferDropped increments stream_buffer_dropped_total |
| 169 | // once per dropped event. No-op when m is nil. |
| 170 | func (m *Metrics) RecordStreamBufferDropped() { |
| 171 | if m == nil { |
| 172 | return |
| 173 | } |
| 174 | m.StreamBufferDroppedTotal.Inc() |
| 175 | } |
| 176 | |
| 177 | // EstimatePromptSize returns a cheap byte-size estimate of a |
| 178 | // fantasy prompt by summing the text content lengths of all |
no outgoing calls