(ctx context.Context, taskID uuid.UUID)
| 2691 | } |
| 2692 | |
| 2693 | func (m queryMetricsStore) GetTaskSnapshot(ctx context.Context, taskID uuid.UUID) (database.TaskSnapshot, error) { |
| 2694 | start := time.Now() |
| 2695 | r0, r1 := m.s.GetTaskSnapshot(ctx, taskID) |
| 2696 | m.queryLatencies.WithLabelValues("GetTaskSnapshot").Observe(time.Since(start).Seconds()) |
| 2697 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetTaskSnapshot").Inc() |
| 2698 | return r0, r1 |
| 2699 | } |
| 2700 | |
| 2701 | func (m queryMetricsStore) GetTelemetryItem(ctx context.Context, key string) (database.TelemetryItem, error) { |
| 2702 | start := time.Now() |
nothing calls this directly
no test coverage detected