MCPcopy Index your code
hub / github.com/coder/coder / RecordStreamBufferDropped

Method RecordStreamBufferDropped

coderd/x/chatd/chatloop/metrics.go:170–175  ·  view source on GitHub ↗

RecordStreamBufferDropped increments stream_buffer_dropped_total once per dropped event. No-op when m is nil.

()

Source from the content-addressed store, hash-verified

168// RecordStreamBufferDropped increments stream_buffer_dropped_total
169// once per dropped event. No-op when m is nil.
170func (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

Callers 3

publishToStreamMethod · 0.80

Calls

no outgoing calls

Tested by 2