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

Method GetCryptoKeys

coderd/database/dbmetrics/querymetrics.go:1725–1731  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1723}
1724
1725func (m queryMetricsStore) GetCryptoKeys(ctx context.Context) ([]database.CryptoKey, error) {
1726 start := time.Now()
1727 r0, r1 := m.s.GetCryptoKeys(ctx)
1728 m.queryLatencies.WithLabelValues("GetCryptoKeys").Observe(time.Since(start).Seconds())
1729 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetCryptoKeys").Inc()
1730 return r0, r1
1731}
1732
1733func (m queryMetricsStore) GetCryptoKeysByFeature(ctx context.Context, feature database.CryptoKeyFeature) ([]database.CryptoKey, error) {
1734 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetCryptoKeysMethod · 0.65

Tested by

no test coverage detected