From 2c5a0bb301831e4a2f584098cf20641e880502dd Mon Sep 17 00:00:00 2001 From: jonaro00 <54029719+jonaro00@users.noreply.github.com> Date: Tue, 12 Sep 2023 11:37:27 +0200 Subject: [PATCH] batch in 1 sec intervals (#1222) --- proto/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/proto/src/lib.rs b/proto/src/lib.rs index 559da8de3..6bd670073 100644 --- a/proto/src/lib.rs +++ b/proto/src/lib.rs @@ -379,11 +379,9 @@ pub mod logger { } /// Create a batcher around inner. It will send a batch of items to inner if a capacity of 2048 is reached - /// or if an interval of 5 seconds are reached. - /// - /// These are the same defaults used by the otel batcher + /// or if an interval of 1 second is reached. pub fn wrap(inner: I) -> Self { - Self::new(inner, 2048, Duration::from_secs(5)) + Self::new(inner, 2048, Duration::from_secs(1)) } /// Send a single item into this batcher