mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
[ws-manager-bridge] Fix counting of stale prebuild events
This commit is contained in:
parent
81a79af4ec
commit
98526f44ef
@ -59,7 +59,10 @@ export class WorkspaceManagerBridgeEE extends WorkspaceManagerBridge {
|
||||
span.setTag("updatePrebuiltWorkspace.workspaceInstance.statusVersion", status.statusVersion);
|
||||
|
||||
if (prebuild.statusVersion <= status.statusVersion) {
|
||||
this.prometheusExporter.recordStalePrebuildEvent()
|
||||
// prebuild.statusVersion = 0 is the default value in the DB, these shouldn't be counted as stale in our metrics
|
||||
if (prebuild.statusVersion > 0) {
|
||||
this.prometheusExporter.recordStalePrebuildEvent();
|
||||
}
|
||||
}
|
||||
prebuild.statusVersion = status.statusVersion
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user