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

Function newLabelName

server/controller/prometheus/cache/label_name.go:38–46  ·  view source on GitHub ↗
(org *common.ORG)

Source from the content-addressed store, hash-verified

36}
37
38func newLabelName(org *common.ORG) *labelName {
39 ln := &labelName{
40 org: org,
41 pendingNameToID: make(map[string]int),
42 pendingIDToName: make(map[int]string),
43 }
44 ln.active.Store(make(map[string]int))
45 return ln
46}
47
48func (ln *labelName) getActive() map[string]int {
49 if active := ln.active.Load(); active != nil {

Callers 2

newCacheFunction · 0.70
newTestLabelNameFunction · 0.70

Calls 1

StoreMethod · 0.80

Tested by 1

newTestLabelNameFunction · 0.56