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

Method InsertGitSSHKey

coderd/database/dbmetrics/querymetrics.go:3893–3899  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertGitSSHKeyParams)

Source from the content-addressed store, hash-verified

3891}
3892
3893func (m queryMetricsStore) InsertGitSSHKey(ctx context.Context, arg database.InsertGitSSHKeyParams) (database.GitSSHKey, error) {
3894 start := time.Now()
3895 r0, r1 := m.s.InsertGitSSHKey(ctx, arg)
3896 m.queryLatencies.WithLabelValues("InsertGitSSHKey").Observe(time.Since(start).Seconds())
3897 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "InsertGitSSHKey").Inc()
3898 return r0, r1
3899}
3900
3901func (m queryMetricsStore) InsertGroup(ctx context.Context, arg database.InsertGroupParams) (database.Group, error) {
3902 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
InsertGitSSHKeyMethod · 0.65

Tested by

no test coverage detected