MCPcopy Create free account
hub / github.com/deepflowio/deepflow / tryAppendLabel

Method tryAppendLabel

server/controller/prometheus/label.go:428–432  ·  view source on GitHub ↗
(name, value string)

Source from the content-addressed store, hash-verified

426}
427
428func (d *dataToEncode) tryAppendLabel(name, value string) {
429 if _, ok := d.cache.Label.GetIDByKey(cache.NewLabelKey(name, value)); !ok {
430 d.labels.Add(cache.NewLabelKey(name, value))
431 }
432}

Callers 1

splitDataMethod · 0.80

Calls 2

GetIDByKeyMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected