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

Method GetUserCount

coderd/database/dbmetrics/querymetrics.go:3045–3051  ·  view source on GitHub ↗
(ctx context.Context, includeSystem bool)

Source from the content-addressed store, hash-verified

3043}
3044
3045func (m queryMetricsStore) GetUserCount(ctx context.Context, includeSystem bool) (int64, error) {
3046 start := time.Now()
3047 r0, r1 := m.s.GetUserCount(ctx, includeSystem)
3048 m.queryLatencies.WithLabelValues("GetUserCount").Observe(time.Since(start).Seconds())
3049 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetUserCount").Inc()
3050 return r0, r1
3051}
3052
3053func (m queryMetricsStore) GetUserGroupSpendLimit(ctx context.Context, userID database.GetUserGroupSpendLimitParams) (int64, error) {
3054 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetUserCountMethod · 0.65

Tested by

no test coverage detected