MCPcopy Index your code
hub / github.com/coder/coder / metricsStore

Struct metricsStore

coderd/database/dbmetrics/dbmetrics.go:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13)
14
15type metricsStore struct {
16 database.Store
17 logger slog.Logger
18 // txDuration is how long transactions take to execute.
19 txDuration *prometheus.HistogramVec
20 // txRetries is how many retries we are seeing for a given tx.
21 txRetries *prometheus.CounterVec
22}
23
24// NewDBMetrics returns a database.Store that registers metrics for the database
25// but does not handle individual queries.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected