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

Method GetUserSecretByID

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

Source from the content-addressed store, hash-verified

3099}
3100
3101func (m queryMetricsStore) GetUserSecretByID(ctx context.Context, id uuid.UUID) (database.UserSecret, error) {
3102 start := time.Now()
3103 r0, r1 := m.s.GetUserSecretByID(ctx, id)
3104 m.queryLatencies.WithLabelValues("GetUserSecretByID").Observe(time.Since(start).Seconds())
3105 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetUserSecretByID").Inc()
3106 return r0, r1
3107}
3108
3109func (m queryMetricsStore) GetUserSecretByUserIDAndName(ctx context.Context, arg database.GetUserSecretByUserIDAndNameParams) (database.UserSecret, error) {
3110 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetUserSecretByIDMethod · 0.65

Tested by

no test coverage detected