pub struct ReconnectionConfig {
pub initial_delay_ms: u64,
pub max_delay_ms: u64,
pub backoff_multiplier: f64,
pub jitter_factor: f64,
pub max_retries: Option<u64>,
pub max_pending_messages: usize,
}Expand description
Configuration for WebSocket reconnection behavior
Fields§
§initial_delay_ms: u64§max_delay_ms: u64§backoff_multiplier: f64§jitter_factor: f64§max_retries: Option<u64>§max_pending_messages: usizeMaximum messages preserved across reconnects. Messages beyond this limit
are dropped to prevent delivering stale data after a long disconnect.
This is intentionally smaller than OtelConfig::channel_capacity (the
in-flight buffer between exporters and the WebSocket loop).
Implementations§
Source§impl ReconnectionConfig
impl ReconnectionConfig
Sourcepub fn effective_initial_delay_ms(&self) -> u64
pub fn effective_initial_delay_ms(&self) -> u64
Returns initial_delay_ms, clamped to a minimum of 1ms to prevent division by zero.
Trait Implementations§
Source§impl Clone for ReconnectionConfig
impl Clone for ReconnectionConfig
Source§fn clone(&self) -> ReconnectionConfig
fn clone(&self) -> ReconnectionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReconnectionConfig
impl Debug for ReconnectionConfig
Auto Trait Implementations§
impl Freeze for ReconnectionConfig
impl RefUnwindSafe for ReconnectionConfig
impl Send for ReconnectionConfig
impl Sync for ReconnectionConfig
impl Unpin for ReconnectionConfig
impl UnsafeUnpin for ReconnectionConfig
impl UnwindSafe for ReconnectionConfig
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