소스 검색

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

GitOrigin-RevId: beec70b77d7ceb8b97d5cb4176bcde7c41cb073f
Jakob Ackermann 1 년 전
부모
커밋
d96cd7d251
1개의 변경된 파일과 8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      services/web/app/src/Features/Compile/CompileController.js

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