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

Method tryAppendLabelName

server/controller/prometheus/label.go:405–409  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

403}
404
405func (d *dataToEncode) tryAppendLabelName(name string) {
406 if _, ok := d.cache.LabelName.GetIDByName(name); !ok {
407 d.labelNames.Add(name)
408 }
409}
410
411func (d *dataToEncode) tryAppendLabelValue(value string) {
412 if _, ok := d.cache.LabelValue.GetIDByValue(value); !ok {

Callers 1

splitDataMethod · 0.80

Calls 2

GetIDByNameMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected