Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/segmentio/kafka-go
/ observe
Method
observe
stats.go:55–57 ·
view source on GitHub ↗
(v int64)
Source
from the content-addressed store, hash-verified
53
}
54
55
func
(g *gauge) observe(v int64) {
56
atomic.StoreInt64(g.ptr(), v)
57
}
58
59
func
(g *gauge) snapshot() int64 {
60
return
atomic.LoadInt64(g.ptr())
Callers
9
observe
Method · 0.45
run
Method · 0.45
readLag
Method · 0.45
run
Method · 0.45
initialize
Method · 0.45
read
Method · 0.45
NewWriter
Function · 0.45
awaitBatch
Method · 0.45
writeBatch
Method · 0.45
Calls
1
ptr
Method · 0.95
Tested by
no test coverage detected