Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortexproject/cortex
/ Track
Method
Track
pkg/util/math/max_tracker.go:10–14 ·
view source on GitHub ↗
(max int64)
Source
from the content-addressed store, hash-verified
8
}
9
10
func
(m *MaxTracker) Track(max int64) {
11
if
l := m.current.Load(); l < max {
12
m.current.CompareAndSwap(l, max)
13
}
14
}
15
16
func
(m *MaxTracker) Tick() {
17
m.old.Store(m.current.Load())
Callers
6
TestIngesterMetrics
Function · 0.95
TestMaxTracker
Function · 0.95
prepareSeriesKeys
Method · 0.45
Push
Method · 0.45
trackInflightQueryRequest
Method · 0.45
updateSamplesDiscarded
Method · 0.45
Calls
1
Load
Method · 0.80
Tested by
2
TestIngesterMetrics
Function · 0.76
TestMaxTracker
Function · 0.76