(ctx context.Context, staleThreshold time.Time)
| 2635 | } |
| 2636 | |
| 2637 | func (m queryMetricsStore) GetStaleChats(ctx context.Context, staleThreshold time.Time) ([]database.Chat, error) { |
| 2638 | start := time.Now() |
| 2639 | r0, r1 := m.s.GetStaleChats(ctx, staleThreshold) |
| 2640 | m.queryLatencies.WithLabelValues("GetStaleChats").Observe(time.Since(start).Seconds()) |
| 2641 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetStaleChats").Inc() |
| 2642 | return r0, r1 |
| 2643 | } |
| 2644 | |
| 2645 | func (m queryMetricsStore) GetTailnetPeers(ctx context.Context, id uuid.UUID) ([]database.TailnetPeer, error) { |
| 2646 | start := time.Now() |
nothing calls this directly
no test coverage detected