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

Method GetUsers

coderd/database/dbmetrics/querymetrics.go:3173–3179  ·  view source on GitHub ↗
(ctx context.Context, arg database.GetUsersParams)

Source from the content-addressed store, hash-verified

3171}
3172
3173func (m queryMetricsStore) GetUsers(ctx context.Context, arg database.GetUsersParams) ([]database.GetUsersRow, error) {
3174 start := time.Now()
3175 r0, r1 := m.s.GetUsers(ctx, arg)
3176 m.queryLatencies.WithLabelValues("GetUsers").Observe(time.Since(start).Seconds())
3177 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetUsers").Inc()
3178 return r0, r1
3179}
3180
3181func (m queryMetricsStore) GetUsersByIDs(ctx context.Context, ids []uuid.UUID) ([]database.User, error) {
3182 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetUsersMethod · 0.65

Tested by

no test coverage detected