(ctx context.Context)
| 84 | } |
| 85 | |
| 86 | func (m queryMetricsStore) PGLocks(ctx context.Context) (database.PGLocks, error) { |
| 87 | start := time.Now() |
| 88 | locks, err := m.s.PGLocks(ctx) |
| 89 | m.queryLatencies.WithLabelValues("PGLocks").Observe(time.Since(start).Seconds()) |
| 90 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "PGLocks").Inc() |
| 91 | return locks, err |
| 92 | } |
| 93 | |
| 94 | func (m queryMetricsStore) InTx(f func(database.Store) error, options *database.TxOptions) error { |
| 95 | return m.dbMetrics.InTx(f, options) |
nothing calls this directly
no test coverage detected