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

Method InsertFile

coderd/database/dbmetrics/querymetrics.go:3885–3891  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertFileParams)

Source from the content-addressed store, hash-verified

3883}
3884
3885func (m queryMetricsStore) InsertFile(ctx context.Context, arg database.InsertFileParams) (database.File, error) {
3886 start := time.Now()
3887 r0, r1 := m.s.InsertFile(ctx, arg)
3888 m.queryLatencies.WithLabelValues("InsertFile").Observe(time.Since(start).Seconds())
3889 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "InsertFile").Inc()
3890 return r0, r1
3891}
3892
3893func (m queryMetricsStore) InsertGitSSHKey(ctx context.Context, arg database.InsertGitSSHKeyParams) (database.GitSSHKey, error) {
3894 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
InsertFileMethod · 0.65

Tested by

no test coverage detected