Skip to content

Commit 86c4948

Browse files
authored
chore: add timing flag context to warn message (#20772)
`prometheus.provisionerd_server_metrics: unsupported workspace timing flags` appears in the logs, but without knowledge of the available flags it's not possible to troubleshoot this. Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 6bafbb7 commit 86c4948

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

coderd/provisionerdserver/metrics.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ func (m *Metrics) UpdateWorkspaceTimingsMetrics(
153153
m.workspaceClaimTimings.
154154
WithLabelValues(organizationName, templateName, presetName).Observe(buildTime)
155155
default:
156-
m.logger.Warn(ctx, "unsupported workspace timing flags")
156+
m.logger.Warn(ctx, "unsupported workspace timing flags",
157+
"isPrebuild", flags.IsPrebuild,
158+
"isClaim", flags.IsClaim,
159+
"isWorkspaceFirstBuild", flags.IsFirstBuild)
157160
}
158161
}

0 commit comments

Comments
 (0)