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

Method GetDBCryptKeys

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

Source from the content-addressed store, hash-verified

1739}
1740
1741func (m queryMetricsStore) GetDBCryptKeys(ctx context.Context) ([]database.DBCryptKey, error) {
1742 start := time.Now()
1743 r0, r1 := m.s.GetDBCryptKeys(ctx)
1744 m.queryLatencies.WithLabelValues("GetDBCryptKeys").Observe(time.Since(start).Seconds())
1745 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetDBCryptKeys").Inc()
1746 return r0, r1
1747}
1748
1749func (m queryMetricsStore) GetDERPMeshKey(ctx context.Context) (string, error) {
1750 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetDBCryptKeysMethod · 0.65

Tested by

no test coverage detected