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

Method RecordBuildEnqueued

coderd/wsbuilder/metrics.go:36–42  ·  view source on GitHub ↗

RecordBuildEnqueued records a workspace build enqueue attempt. It determines the status based on whether an error occurred and increments the counter.

(provisionerType, buildReason, transition string, err error)

Source from the content-addressed store, hash-verified

34// RecordBuildEnqueued records a workspace build enqueue attempt. It determines
35// the status based on whether an error occurred and increments the counter.
36func (m *Metrics) RecordBuildEnqueued(provisionerType, buildReason, transition string, err error) {
37 status := BuildStatusSuccess
38 if err != nil {
39 status = BuildStatusFailed
40 }
41 m.workspaceBuildsEnqueued.WithLabelValues(provisionerType, buildReason, transition, status).Inc()
42}

Callers 1

recordBuildMetricsMethod · 0.80

Calls 1

WithLabelValuesMethod · 0.80

Tested by

no test coverage detected