File tree 1 file changed +5
-0
lines changed
components/server/src/workspace
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ import { ExtendedUser } from "@gitpod/ws-manager/lib/constraints";
114
114
import {
115
115
FailedInstanceStartReason ,
116
116
increaseFailedInstanceStartCounter ,
117
+ increaseImageBuildsStartedTotal ,
117
118
increaseSuccessfulInstanceStartCounter ,
118
119
} from "../prometheus-metrics" ;
119
120
import { ContextParser } from "./context-parser-service" ;
@@ -1255,6 +1256,10 @@ export class WorkspaceStarter {
1255
1256
1256
1257
const result = await client . build ( { span } , req , imageBuildLogInfo ) ;
1257
1258
1259
+ if ( result . actuallyNeedsBuild ) {
1260
+ increaseImageBuildsStartedTotal ( ) ;
1261
+ }
1262
+
1258
1263
// Update the workspace now that we know what the name of the workspace image will be (which doubles as buildID)
1259
1264
workspace . imageNameResolved = result . ref ;
1260
1265
span . log ( { ref : workspace . imageNameResolved } ) ;
You can’t perform that action at this time.
0 commit comments