pub struct ProxyTelemetryConfig {
pub enabled: bool,
pub batch_size: usize,
pub batch_interval_secs: u64,
pub endpoint: Option<String>,
pub token_key: Option<String>,
pub offline_queue_max: usize,
}Expand description
Telemetry pipeline configuration — reports routing decisions to a configurable HTTP endpoint even when the call is executed locally.
Fields§
§enabled: boolWhen false, no telemetry events are collected or uploaded.
batch_size: usizeFlush when this many events accumulate in the buffer.
batch_interval_secs: u64Flush at least once per interval even if the buffer is smaller than batch_size.
endpoint: Option<String>Upload endpoint URL. If unset, events are collected but never uploaded (dry-run).
token_key: Option<String>Keychain key for the telemetry auth token. Falls back to the first upstream
server’s token_key when unset.
offline_queue_max: usizeMaximum events held in the offline queue (when upload is unavailable). Oldest events are dropped when the queue is full.
Implementations§
Source§impl ProxyTelemetryConfig
impl ProxyTelemetryConfig
pub fn is_default(&self) -> bool
Trait Implementations§
Source§impl Clone for ProxyTelemetryConfig
impl Clone for ProxyTelemetryConfig
Source§fn clone(&self) -> ProxyTelemetryConfig
fn clone(&self) -> ProxyTelemetryConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProxyTelemetryConfig
impl Debug for ProxyTelemetryConfig
Source§impl Default for ProxyTelemetryConfig
impl Default for ProxyTelemetryConfig
Source§impl<'de> Deserialize<'de> for ProxyTelemetryConfig
impl<'de> Deserialize<'de> for ProxyTelemetryConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProxyTelemetryConfig
impl RefUnwindSafe for ProxyTelemetryConfig
impl Send for ProxyTelemetryConfig
impl Sync for ProxyTelemetryConfig
impl Unpin for ProxyTelemetryConfig
impl UnsafeUnpin for ProxyTelemetryConfig
impl UnwindSafe for ProxyTelemetryConfig
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