MCPcopy
hub / github.com/netdata/netdata / recordWriteError

Method recordWriteError

src/go/plugin/framework/metricsaudit/capture.go:404–415  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

402}
403
404func (da *Auditor) recordWriteError(err error) {
405 if err == nil {
406 return
407 }
408
409 da.mu.Lock()
410 defer da.mu.Unlock()
411 da.writeErrorCount++
412 if len(da.writeErrors) < maxWriteErrorSamples {
413 da.writeErrors = append(da.writeErrors, err.Error())
414 }
415}
416
417func cloneIntMetrics(mx map[string]int64) map[string]int64 {
418 if len(mx) == 0 {

Callers 4

runWriterMethod · 0.95
RegisterJobMethod · 0.95
enqueueWriteTaskMethod · 0.95
flushWriteQueueMethod · 0.95

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected