MCPcopy
hub / github.com/prometheus/prometheus / isHistogramValidationError

Function isHistogramValidationError

storage/remote/write_handler.go:85–88  ·  view source on GitHub ↗

isHistogramValidationError checks if the error is a native histogram validation error.

(err error)

Source from the content-addressed store, hash-verified

83
84// isHistogramValidationError checks if the error is a native histogram validation error.
85func isHistogramValidationError(err error) bool {
86 var e histogram.Error
87 return errors.As(err, &e)
88}
89
90// Store implements remoteapi.writeStorage interface.
91// TODO(bwplotka): Improve remoteapi.Store API. Right now it's confusing if PRWv1 flows should use WriteResponse or not.

Callers 2

StoreMethod · 0.85
appendV2Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…