MCPcopy
hub / github.com/grafana/dskit / Register

Method Register

instrument/instrument.go:53–55  ·  view source on GitHub ↗

Register registers metrics.

()

Source from the content-addressed store, hash-verified

51
52// Register registers metrics.
53func (c *HistogramCollector) Register() {
54 prometheus.MustRegister(c.metric)
55}
56
57// Before collects for the upcoming request.
58func (c *HistogramCollector) Before(context.Context, string, time.Time) {

Callers

nothing calls this directly

Calls 1

MustRegisterMethod · 0.80

Tested by

no test coverage detected