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

Method ListTasks

coderd/database/dbmetrics/querymetrics.go:4461–4467  ·  view source on GitHub ↗
(ctx context.Context, arg database.ListTasksParams)

Source from the content-addressed store, hash-verified

4459}
4460
4461func (m queryMetricsStore) ListTasks(ctx context.Context, arg database.ListTasksParams) ([]database.Task, error) {
4462 start := time.Now()
4463 r0, r1 := m.s.ListTasks(ctx, arg)
4464 m.queryLatencies.WithLabelValues("ListTasks").Observe(time.Since(start).Seconds())
4465 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "ListTasks").Inc()
4466 return r0, r1
4467}
4468
4469func (m queryMetricsStore) ListUserChatCompactionThresholds(ctx context.Context, userID uuid.UUID) ([]database.UserConfig, error) {
4470 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
ListTasksMethod · 0.65

Tested by

no test coverage detected