Kaynağa Gözat

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

GitOrigin-RevId: beec70b77d7ceb8b97d5cb4176bcde7c41cb073f
Jakob Ackermann 1 yıl önce
ebeveyn
işleme
d96cd7d251

+ 8 - 1
services/web/app/src/Features/Compile/CompileController.js

@@ -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.