Skip to content

Commit fcaf121

Browse files
authored
Fixes error tracking for function deployments (#3160)
1 parent cb096d6 commit fcaf121

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/functionsDeployHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ export function logAndTrackDeployStats(queue: Queue<any, any>, errorHandler: Err
184184
logger.debug(`${errorHandler.errors.length} Functions Errored`);
185185
logger.debug(`Average Function Deployment time: ${stats.avg}`);
186186
if (stats.total > 0) {
187-
track("Functions Deploy (Result)", "failure", stats.errored);
188-
track("Functions Deploy (Result)", "success", stats.success);
187+
track("Functions Deploy (Result)", "failure", errorHandler.errors.length);
188+
track("Functions Deploy (Result)", "success", stats.total - errorHandler.errors.length);
189189
}
190190
// TODO: Track other stats here - maybe time of full deployment?
191191
}

0 commit comments

Comments
 (0)