MCPcopy Index your code
hub / github.com/coder/coder / GetStaleChats

Method GetStaleChats

coderd/database/dbmetrics/querymetrics.go:2637–2643  ·  view source on GitHub ↗
(ctx context.Context, staleThreshold time.Time)

Source from the content-addressed store, hash-verified

2635}
2636
2637func (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
2645func (m queryMetricsStore) GetTailnetPeers(ctx context.Context, id uuid.UUID) ([]database.TailnetPeer, error) {
2646 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetStaleChatsMethod · 0.65

Tested by

no test coverage detected