MCPcopy
hub / github.com/prometheus/prometheus / ErrSearchResultSet

Function ErrSearchResultSet

storage/interface.go:316–322  ·  view source on GitHub ↗

ErrSearchResultSet returns a SearchResultSet that immediately returns the given error. Any supplied annotations.Annotations are merged and exposed via Warnings, allowing callers to surface warnings accumulated before the error occurred.

(err error, warnings ...annotations.Annotations)

Source from the content-addressed store, hash-verified

314// Any supplied annotations.Annotations are merged and exposed via Warnings, allowing
315// callers to surface warnings accumulated before the error occurred.
316func ErrSearchResultSet(err error, warnings ...annotations.Annotations) SearchResultSet {
317 var warns annotations.Annotations
318 for _, w := range warnings {
319 warns.Merge(w)
320 }
321 return errSearchResultSet{err: err, warnings: warns}
322}
323
324// LabelHints specifies hints passed for label reads.
325// This is used only as an option for implementation to use.

Callers 8

SearchLabelNamesMethod · 0.92
SearchLabelValuesMethod · 0.92
SearchLabelNamesMethod · 0.92
SearchLabelValuesMethod · 0.92
SearchLabelNamesMethod · 0.92
SearchLabelValuesMethod · 0.92
SearchLabelNamesMethod · 0.85
SearchLabelValuesMethod · 0.85

Calls 1

MergeMethod · 0.95

Tested by 6

SearchLabelNamesMethod · 0.74
SearchLabelValuesMethod · 0.74
SearchLabelNamesMethod · 0.74
SearchLabelValuesMethod · 0.74
SearchLabelNamesMethod · 0.68
SearchLabelValuesMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…