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

Struct HistogramCollector

instrument/instrument.go:32–34  ·  view source on GitHub ↗

HistogramCollector collects the duration of a request

Source from the content-addressed store, hash-verified

30
31// HistogramCollector collects the duration of a request
32type HistogramCollector struct {
33 metric *prometheus.HistogramVec
34}
35
36// HistogramCollectorBuckets define the buckets when passing the metric
37var HistogramCollectorBuckets = []string{"operation", "status_code"}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected