Merge pull request #2905 from overleaf/bg-add-compile-status-metric

add metrics for compile status and errors

GitOrigin-RevId: 37d2257818430086d257e8764a979f416dab033a
This commit is contained in:
Brian Gough 2020-06-12 09:25:46 +01:00 committed by Copybot
parent d9e4bda90b
commit 516f0d04f4

View file

@ -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,