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

Method GetChatFilesByIDs

coderd/database/dbmetrics/querymetrics.go:1469–1475  ·  view source on GitHub ↗
(ctx context.Context, ids []uuid.UUID)

Source from the content-addressed store, hash-verified

1467}
1468
1469func (m queryMetricsStore) GetChatFilesByIDs(ctx context.Context, ids []uuid.UUID) ([]database.ChatFile, error) {
1470 start := time.Now()
1471 r0, r1 := m.s.GetChatFilesByIDs(ctx, ids)
1472 m.queryLatencies.WithLabelValues("GetChatFilesByIDs").Observe(time.Since(start).Seconds())
1473 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetChatFilesByIDs").Inc()
1474 return r0, r1
1475}
1476
1477func (m queryMetricsStore) GetChatGeneralModelOverride(ctx context.Context) (string, error) {
1478 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetChatFilesByIDsMethod · 0.65

Tested by

no test coverage detected