File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,17 @@ export class DynamicFlushScheduler<T> {
32
32
this . startFlushTimer ( ) ;
33
33
this . setupShutdownHandlers ( ) ;
34
34
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
+ // }
44
46
}
45
47
46
48
async addToBatch ( items : T [ ] ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments