Skip to content

Commit a929974

Browse files
committed
comment out metric sending
1 parent ba7dca6 commit a929974

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

apps/webapp/app/v3/dynamicFlushScheduler.server.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,17 @@ export class DynamicFlushScheduler<T> {
3232
this.startFlushTimer();
3333
this.setupShutdownHandlers();
3434

35-
const scheduler = this;
36-
new Gauge({
37-
name: "dynamic_flush_scheduler_batch_size",
38-
help: "Number of items in the current dynamic flush scheduler batch",
39-
collect() {
40-
this.set(scheduler.currentBatch.length);
41-
},
42-
registers: [metricsRegister],
43-
});
35+
// if (process.env.NODE_ENV !== "test") {
36+
// const scheduler = this;
37+
// new Gauge({
38+
// name: "dynamic_flush_scheduler_batch_size",
39+
// help: "Number of items in the current dynamic flush scheduler batch",
40+
// collect() {
41+
// this.set(scheduler.currentBatch.length);
42+
// },
43+
// registers: [metricsRegister],
44+
// });
45+
// }
4446
}
4547

4648
async addToBatch(items: T[]): Promise<void> {

0 commit comments

Comments
 (0)