mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-27 06:13:51 +00:00
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:
parent
d9e4bda90b
commit
516f0d04f4
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue