···4141 Unit::Microseconds,
4242 "batches that took more than 3s to insert"
4343 );
4444+ describe_histogram!(
4545+ "storage_batch_insert_time",
4646+ Unit::Microseconds,
4747+ "total time to insert one commit batch"
4848+ );
4449 while let Some(event_batch) = batches.recv().await {
4550 let token = CancellationToken::new();
4651 let cancelled = token.clone();
···6974 let mut me = self.clone();
7075 move || {
7176 let _guard = token.drop_guard();
7272- me.insert_batch(event_batch)
7777+ let t0 = Instant::now();
7878+ let r = me.insert_batch(event_batch);
7979+ histogram!("storage_batch_insert_time").record(t0.elapsed().as_micros() as f64);
8080+ r
7381 }
7482 })
7583 .await??;