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

Method tryAppendLabelValue

server/controller/prometheus/label.go:411–415  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

409}
410
411func (d *dataToEncode) tryAppendLabelValue(value string) {
412 if _, ok := d.cache.LabelValue.GetIDByValue(value); !ok {
413 d.labelValues.Add(value)
414 }
415}
416
417func (d *dataToEncode) tryAppendMetricAPPLabelLayout(metricName, labelName string) {
418 k := cache.NewLayoutKey(metricName, labelName)

Callers 1

splitDataMethod · 0.80

Calls 2

GetIDByValueMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected