[web] add metrics for mongo access in split test system (#32920)

GitOrigin-RevId: cd93401bace60c003a63914e2898cf1f0defdabc
This commit is contained in:
Jakob Ackermann
2026-04-21 08:05:14 +00:00
committed by Copybot
parent ad79c85cea
commit 4ce5620b1d
11 changed files with 74 additions and 18 deletions
@@ -437,7 +437,10 @@ async function processMigration(input, commit) {
}
// 7. If commit mode, perform migration
const analyticsId = await UserAnalyticsIdCache.get(overleafUserId)
const analyticsId = await UserAnalyticsIdCache.getWithMetrics(
overleafUserId,
'script' // no-op, metrics are not collected from scripts.
)
const mongoUser = await User.findOne({
_id: overleafUserId,
}).exec()