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

Method UpsertTaskSnapshot

coderd/database/dbmetrics/querymetrics.go:6053–6059  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpsertTaskSnapshotParams)

Source from the content-addressed store, hash-verified

6051}
6052
6053func (m queryMetricsStore) UpsertTaskSnapshot(ctx context.Context, arg database.UpsertTaskSnapshotParams) error {
6054 start := time.Now()
6055 r0 := m.s.UpsertTaskSnapshot(ctx, arg)
6056 m.queryLatencies.WithLabelValues("UpsertTaskSnapshot").Observe(time.Since(start).Seconds())
6057 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "UpsertTaskSnapshot").Inc()
6058 return r0
6059}
6060
6061func (m queryMetricsStore) UpsertTaskWorkspaceApp(ctx context.Context, arg database.UpsertTaskWorkspaceAppParams) (database.TaskWorkspaceApp, error) {
6062 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
UpsertTaskSnapshotMethod · 0.65

Tested by

no test coverage detected