(elapsed time.Duration, username string, ownedWorkspaces int64, workspace string)
| 34 | } |
| 35 | |
| 36 | func (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 | |
| 40 | func (m *Metrics) AddError(username string, ownedWorkspaces int64, action string) { |
| 41 | m.WorkspaceUpdatesErrorsTotal.WithLabelValues(username, strconv.Itoa(int(ownedWorkspaces)), action).Inc() |
no test coverage detected