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

Method GetChatFileByID

coderd/database/dbmetrics/querymetrics.go:1453–1459  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

1451}
1452
1453func (m queryMetricsStore) GetChatFileByID(ctx context.Context, id uuid.UUID) (database.ChatFile, error) {
1454 start := time.Now()
1455 r0, r1 := m.s.GetChatFileByID(ctx, id)
1456 m.queryLatencies.WithLabelValues("GetChatFileByID").Observe(time.Since(start).Seconds())
1457 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetChatFileByID").Inc()
1458 return r0, r1
1459}
1460
1461func (m queryMetricsStore) GetChatFileMetadataByChatID(ctx context.Context, chatID uuid.UUID) ([]database.GetChatFileMetadataByChatIDRow, error) {
1462 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetChatFileByIDMethod · 0.65

Tested by

no test coverage detected