mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
[web] add metrics for mongo access in split test system (#32920)
GitOrigin-RevId: cd93401bace60c003a63914e2898cf1f0defdabc
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user