MCPcopy Create free account
hub / github.com/netdata/netdata / copyLabels

Function copyLabels

src/go/pkg/prometheus/parse.go:403–405  ·  view source on GitHub ↗
(lbs []labels.Label)

Source from the content-addressed store, hash-verified

401}
402
403func copyLabels(lbs []labels.Label) []labels.Label {
404 return append([]labels.Label(nil), lbs...)
405}
406
407func removeLabel(lbs labels.Labels, name string) (labels.Labels, string, bool) {
408 for i, v := range lbs {

Callers 6

parseToSeriesMethod · 0.70
addGaugeMethod · 0.70
addCounterMethod · 0.70
addUnknownMethod · 0.70
addSummaryMethod · 0.70
addHistogramMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…