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

Method GetChats

coderd/database/dbmetrics/querymetrics.go:1669–1675  ·  view source on GitHub ↗
(ctx context.Context, arg database.GetChatsParams)

Source from the content-addressed store, hash-verified

1667}
1668
1669func (m queryMetricsStore) GetChats(ctx context.Context, arg database.GetChatsParams) ([]database.GetChatsRow, error) {
1670 start := time.Now()
1671 r0, r1 := m.s.GetChats(ctx, arg)
1672 m.queryLatencies.WithLabelValues("GetChats").Observe(time.Since(start).Seconds())
1673 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetChats").Inc()
1674 return r0, r1
1675}
1676
1677func (m queryMetricsStore) GetChatsByChatFileID(ctx context.Context, fileID uuid.UUID) ([]database.Chat, error) {
1678 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetChatsMethod · 0.65

Tested by

no test coverage detected