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

Method RevokeDBCryptKey

coderd/database/dbmetrics/querymetrics.go:4613–4619  ·  view source on GitHub ↗
(ctx context.Context, activeKeyDigest string)

Source from the content-addressed store, hash-verified

4611}
4612
4613func (m queryMetricsStore) RevokeDBCryptKey(ctx context.Context, activeKeyDigest string) error {
4614 start := time.Now()
4615 r0 := m.s.RevokeDBCryptKey(ctx, activeKeyDigest)
4616 m.queryLatencies.WithLabelValues("RevokeDBCryptKey").Observe(time.Since(start).Seconds())
4617 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "RevokeDBCryptKey").Inc()
4618 return r0
4619}
4620
4621func (m queryMetricsStore) SelectUsageEventsForPublishing(ctx context.Context, now time.Time) ([]database.UsageEvent, error) {
4622 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
RevokeDBCryptKeyMethod · 0.65

Tested by

no test coverage detected