MCPcopy Create free account
hub / github.com/coder/coder / Unregister

Method Unregister

coderd/aibridged/metrics.go:55–62  ·  view source on GitHub ↗

Unregister removes the provider metrics from the registerer.

()

Source from the content-addressed store, hash-verified

53
54// Unregister removes the provider metrics from the registerer.
55func (m *Metrics) Unregister() {
56 if m == nil {
57 return
58 }
59 m.registerer.Unregister(m.ProviderInfo)
60 m.registerer.Unregister(m.ProvidersLastReloadTimestampSeconds)
61 m.registerer.Unregister(m.ProvidersLastReloadSuccessTimestampSeconds)
62}
63
64// RecordReloadAttempt stamps the attempt-time gauge at the start of a
65// reload. A reload that hangs mid-flight is detected by watching the

Callers 1

TestMetricsNilSafeFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestMetricsNilSafeFunction · 0.76