From 516f0d04f444a81ffdb040cd769a306a18f4f88c Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Fri, 12 Jun 2020 09:25:46 +0100 Subject: [PATCH] Merge pull request #2905 from overleaf/bg-add-compile-status-metric add metrics for compile status and errors GitOrigin-RevId: 37d2257818430086d257e8764a979f416dab033a --- services/web/app/src/Features/Compile/CompileController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/app/src/Features/Compile/CompileController.js b/services/web/app/src/Features/Compile/CompileController.js index 7261b6d0e0..ceba2271f8 100644 --- a/services/web/app/src/Features/Compile/CompileController.js +++ b/services/web/app/src/Features/Compile/CompileController.js @@ -77,8 +77,10 @@ module.exports = CompileController = { validationProblems ) => { if (error) { + Metrics.inc('compile-error') return next(error) } + Metrics.inc('compile-status', 1, { status: status }) res.json({ status, outputFiles,