[web] bring back sampling for compile-result-backend event (#28383)

GitOrigin-RevId: beec70b77d7ceb8b97d5cb4176bcde7c41cb073f
This commit is contained in:
Jakob Ackermann
2025-09-09 17:45:12 +02:00
committed by Copybot
parent 690937c14c
commit d96cd7d251

View File

@@ -212,7 +212,14 @@ const _CompileController = {
pdfDownloadDomain += outputUrlPrefix
}
if (limits) {
if (
limits &&
SplitTestHandler.getPercentile(
AnalyticsManager.getIdsFromSession(req.session).analyticsId,
'compile-result-backend',
'release'
) === 1
) {
// For a compile request to be sent to clsi we need limits.
// If we get here without having the limits object populated, it is
// a reasonable assumption to make that nothing was compiled.