(reg prometheus.Registerer)
| 125 | } |
| 126 | |
| 127 | func (m *Metrics) Register(reg prometheus.Registerer) error { |
| 128 | if err := reg.Register(m.workspaceCreationTimings); err != nil { |
| 129 | return err |
| 130 | } |
| 131 | if err := reg.Register(m.workspaceClaimTimings); err != nil { |
| 132 | return err |
| 133 | } |
| 134 | return reg.Register(m.jobQueueWait) |
| 135 | } |
| 136 | |
| 137 | // IsTrackable returns true if the workspace build should be tracked in metrics. |
| 138 | // This includes workspace creation, prebuild creation, and prebuild claims. |
no outgoing calls