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

Function newLabel

server/controller/prometheus/cache/label.go:63–72  ·  view source on GitHub ↗
(org *common.ORG, ln *labelName, lv *labelValue)

Source from the content-addressed store, hash-verified

61}
62
63func newLabel(org *common.ORG, ln *labelName, lv *labelValue) *label {
64 l := &label{
65 org: org,
66 labelName: ln,
67 labelValue: lv,
68 pending: make(map[IDLabelKey]int),
69 }
70 l.active.Store(make(map[IDLabelKey]int))
71 return l
72}
73
74func (l *label) getActive() map[IDLabelKey]int {
75 if active := l.active.Load(); active != nil {

Callers 3

newCacheFunction · 0.70
newTestLabelFunction · 0.70
newTestLabelWithRefsFunction · 0.70

Calls 1

StoreMethod · 0.80

Tested by 2

newTestLabelFunction · 0.56
newTestLabelWithRefsFunction · 0.56