| 13 | ) |
| 14 | |
| 15 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected