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

Method InsertDBCryptKey

coderd/database/dbmetrics/querymetrics.go:3853–3859  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertDBCryptKeyParams)

Source from the content-addressed store, hash-verified

3851}
3852
3853func (m queryMetricsStore) InsertDBCryptKey(ctx context.Context, arg database.InsertDBCryptKeyParams) error {
3854 start := time.Now()
3855 r0 := m.s.InsertDBCryptKey(ctx, arg)
3856 m.queryLatencies.WithLabelValues("InsertDBCryptKey").Observe(time.Since(start).Seconds())
3857 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "InsertDBCryptKey").Inc()
3858 return r0
3859}
3860
3861func (m queryMetricsStore) InsertDERPMeshKey(ctx context.Context, value string) error {
3862 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
InsertDBCryptKeyMethod · 0.65

Tested by

no test coverage detected