MCPcopy Create free account
hub / github.com/coder/coder / RecordCompletion

Method RecordCompletion

scaletest/workspaceupdates/metrics.go:36–38  ·  view source on GitHub ↗
(elapsed time.Duration, username string, ownedWorkspaces int64, workspace string)

Source from the content-addressed store, hash-verified

34}
35
36func (m *Metrics) RecordCompletion(elapsed time.Duration, username string, ownedWorkspaces int64, workspace string) {
37 m.WorkspaceUpdatesLatencySeconds.WithLabelValues(username, strconv.Itoa(int(ownedWorkspaces)), workspace).Observe(elapsed.Seconds())
38}
39
40func (m *Metrics) AddError(username string, ownedWorkspaces int64, action string) {
41 m.WorkspaceUpdatesErrorsTotal.WithLabelValues(username, strconv.Itoa(int(ownedWorkspaces)), action).Inc()

Callers 1

watchWorkspaceUpdatesMethod · 0.80

Calls 1

WithLabelValuesMethod · 0.80

Tested by

no test coverage detected