mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-04 06:31:10 +00:00
fix logic excluding smoke test in metric
This commit is contained in:
parent
00acfbdf86
commit
d5c1fb9997
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ module.exports = CompileManager =
|
||||||
timer = new Metrics.Timer("run-compile")
|
timer = new Metrics.Timer("run-compile")
|
||||||
# find the image tag to log it as a metric, e.g. 2015.1 (convert . to - for graphite)
|
# find the image tag to log it as a metric, e.g. 2015.1 (convert . to - for graphite)
|
||||||
tag = request.imageName?.match(/:(.*)/)?[1]?.replace(/\./g,'-') or "default"
|
tag = request.imageName?.match(/:(.*)/)?[1]?.replace(/\./g,'-') or "default"
|
||||||
tag = "other" if project_id?.match(/^[0-9a-f]{24}$/) # exclude smoke test
|
tag = "other" if not request.project_id.match(/^[0-9a-f]{24}$/) # exclude smoke test
|
||||||
Metrics.inc("compiles")
|
Metrics.inc("compiles")
|
||||||
Metrics.inc("compiles-with-image.#{tag}")
|
Metrics.inc("compiles-with-image.#{tag}")
|
||||||
LatexRunner.runLatex request.project_id, {
|
LatexRunner.runLatex request.project_id, {
|
||||||
|
|
Loading…
Reference in a new issue