MCPcopy
hub / github.com/prometheus/client_golang / Reset

Method Reset

prometheus/vec.go:130–130  ·  view source on GitHub ↗

Reset deletes all metrics in this vector.

()

Source from the content-addressed store, hash-verified

128
129// Reset deletes all metrics in this vector.
130func (m *MetricVec) Reset() { m.metricMap.Reset() }
131
132// CurryWith returns a vector curried with the provided labels, i.e. the
133// returned vector has those labels pre-set for all labeled operations performed

Callers 15

TestTimerObserveFunction · 0.45
TestTimerByOutcomeFunction · 0.45
TestSummaryDecayFunction · 0.45
ExampleGatherersFunction · 0.45
maybeRotateStreamsMethod · 0.45
NewDescMethod · 0.45
testMetricVecFunction · 0.45
testConstrainedMetricVecFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestTimerObserveFunction · 0.36
TestTimerByOutcomeFunction · 0.36
TestSummaryDecayFunction · 0.36
ExampleGatherersFunction · 0.36
testMetricVecFunction · 0.36
testConstrainedMetricVecFunction · 0.36
testCurryVecFunction · 0.36
testConstrainedCurryVecFunction · 0.36