Skip to content

Commit

Permalink
batch in 1 sec intervals (#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaro00 authored Sep 12, 2023
1 parent c2a4892 commit 2c5a0bb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c5a0bb

Please sign in to comment.