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

Method InsertCryptoKey

coderd/database/dbmetrics/querymetrics.go:3837–3843  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertCryptoKeyParams)

Source from the content-addressed store, hash-verified

3835}
3836
3837func (m queryMetricsStore) InsertCryptoKey(ctx context.Context, arg database.InsertCryptoKeyParams) (database.CryptoKey, error) {
3838 start := time.Now()
3839 r0, r1 := m.s.InsertCryptoKey(ctx, arg)
3840 m.queryLatencies.WithLabelValues("InsertCryptoKey").Observe(time.Since(start).Seconds())
3841 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "InsertCryptoKey").Inc()
3842 return r0, r1
3843}
3844
3845func (m queryMetricsStore) InsertCustomRole(ctx context.Context, arg database.InsertCustomRoleParams) (database.CustomRole, error) {
3846 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
InsertCryptoKeyMethod · 0.65

Tested by

no test coverage detected