feat: add prometheus metrics to database.Store (#7713)

* Adds dbmetrics package and wraps database.Store with a Prometheus HistogramVec of timings.
* Adds Wrappers method to database.Store to avoid double-wrapping interfaces
* Fixes test flake in TestLicensesListFake
This commit is contained in:
Cian Johnston
2023-05-31 06:55:57 -07:00
committed by GitHub
parent 00a30775bc
commit 784696dfa5
10 changed files with 1641 additions and 8 deletions

View File

@ -97,6 +97,10 @@ type fakeQuerier struct {
*data
}
func (*fakeQuerier) Wrappers() []string {
return []string{}
}
type fakeTx struct {
*fakeQuerier
locks map[int64]struct{}