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

Method LinkChatFiles

coderd/database/dbmetrics/querymetrics.go:4333–4339  ·  view source on GitHub ↗
(ctx context.Context, arg database.LinkChatFilesParams)

Source from the content-addressed store, hash-verified

4331}
4332
4333func (m queryMetricsStore) LinkChatFiles(ctx context.Context, arg database.LinkChatFilesParams) (int32, error) {
4334 start := time.Now()
4335 r0, r1 := m.s.LinkChatFiles(ctx, arg)
4336 m.queryLatencies.WithLabelValues("LinkChatFiles").Observe(time.Since(start).Seconds())
4337 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "LinkChatFiles").Inc()
4338 return r0, r1
4339}
4340
4341func (m queryMetricsStore) ListAIBridgeClients(ctx context.Context, arg database.ListAIBridgeClientsParams) ([]string, error) {
4342 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
LinkChatFilesMethod · 0.65

Tested by

no test coverage detected