pub struct BatchingHttpTransport { /* private fields */ }Expand description
HTTP transport with batching support
Buffers events and sends them in batches to reduce HTTP overhead. Flushes when either:
- The batch reaches
max_batch_sizeevents - The oldest event in the batch is older than
max_batch_age close()is called (flush remaining events)
Implementations§
Source§impl BatchingHttpTransport
impl BatchingHttpTransport
pub fn new( base_url: Url, org_id: Uuid, app_id: Uuid, config: BatchConfig, auth_token: Option<String>, ) -> Result<Self, TransportError>
pub fn with_default_config( base_url: Url, org_id: Uuid, app_id: Uuid, auth_token: Option<String>, ) -> Result<Self, TransportError>
Auto Trait Implementations§
impl !Freeze for BatchingHttpTransport
impl !RefUnwindSafe for BatchingHttpTransport
impl !UnwindSafe for BatchingHttpTransport
impl Send for BatchingHttpTransport
impl Sync for BatchingHttpTransport
impl Unpin for BatchingHttpTransport
impl UnsafeUnpin for BatchingHttpTransport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more