瀏覽代碼

[clsi] shard clsi_compiles_total metric by syncType (#32255)

GitOrigin-RevId: 43111697323ec6697ef5f42cf17807ea564181a0
Jakob Ackermann 6 月之前
父節點
當前提交
69a7927267
共有 2 個文件被更改,包括 2 次插入 和 0 次删除
  1. 1 0
      services/clsi/app/js/CompileManager.js
  2. 1 0
      services/clsi/app/js/Metrics.js

+ 1 - 0
services/clsi/app/js/CompileManager.js

@@ -810,6 +810,7 @@ function _emitMetrics(request, status, stats, timings) {
     draft: request.draft ? 'true' : 'false',
     stop_on_first_error: request.stopOnFirstError ? 'true' : 'false',
     passes,
+    type: request.syncType,
   })
 
   if (timings.sync != null) {

+ 1 - 0
services/clsi/app/js/Metrics.js

@@ -17,6 +17,7 @@ const compilesTotal = new prom.Counter({
     'draft',
     'stop_on_first_error',
     'passes',
+    'type',
   ],
 })