(ctx context.Context, id uuid.UUID)
| 2603 | } |
| 2604 | |
| 2605 | func (m queryMetricsStore) GetReplicaByID(ctx context.Context, id uuid.UUID) (database.Replica, error) { |
| 2606 | start := time.Now() |
| 2607 | r0, r1 := m.s.GetReplicaByID(ctx, id) |
| 2608 | m.queryLatencies.WithLabelValues("GetReplicaByID").Observe(time.Since(start).Seconds()) |
| 2609 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetReplicaByID").Inc() |
| 2610 | return r0, r1 |
| 2611 | } |
| 2612 | |
| 2613 | func (m queryMetricsStore) GetReplicasUpdatedAfter(ctx context.Context, updatedAt time.Time) ([]database.Replica, error) { |
| 2614 | start := time.Now() |
nothing calls this directly
no test coverage detected