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

Method recordBoundaryStatus

agent/boundarylogproxy/proxy.go:204–211  ·  view source on GitHub ↗
(status *codec.BoundaryStatus)

Source from the content-addressed store, hash-verified

202}
203
204func (s *Server) recordBoundaryStatus(status *codec.BoundaryStatus) {
205 if n := status.DroppedChannelFull; n > 0 {
206 s.metrics.logsDropped.WithLabelValues(droppedReasonBoundaryChannelFull).Add(float64(n))
207 }
208 if n := status.DroppedBatchFull; n > 0 {
209 s.metrics.logsDropped.WithLabelValues(droppedReasonBoundaryBatchFull).Add(float64(n))
210 }
211}
212
213func (s *Server) bufferLogs(ctx context.Context, req *agentproto.ReportBoundaryLogsRequest) {
214 select {

Callers 1

handleMessageMethod · 0.95

Calls 2

WithLabelValuesMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected