(ctx context.Context, key string)
| 2699 | } |
| 2700 | |
| 2701 | func (m queryMetricsStore) GetTelemetryItem(ctx context.Context, key string) (database.TelemetryItem, error) { |
| 2702 | start := time.Now() |
| 2703 | r0, r1 := m.s.GetTelemetryItem(ctx, key) |
| 2704 | m.queryLatencies.WithLabelValues("GetTelemetryItem").Observe(time.Since(start).Seconds()) |
| 2705 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetTelemetryItem").Inc() |
| 2706 | return r0, r1 |
| 2707 | } |
| 2708 | |
| 2709 | func (m queryMetricsStore) GetTelemetryItems(ctx context.Context) ([]database.TelemetryItem, error) { |
| 2710 | start := time.Now() |
nothing calls this directly
no test coverage detected