pub struct ProbeConfig {
pub k: u32,
pub sample_rate: f64,
}Expand description
Shadow-probe configuration (ADR 0008 Phase 1): measure the validated k-sample gate-pass-count signal on a sampled fraction of requests WITHOUT changing serving.
Cost caveat: sample_rate × k extra model calls (at the start_rung model) per
sampled request — measurement only, nothing served changes. Default absent = off = zero
extra provider calls, byte-identical to today. Enable only when you want to collect the
regime signal for offline analysis.
Fields§
§k: u32Number of parallel probe samples per request. Must be in [2, 8]; validated by
Config::parse. Each sample is one model call at the start_rung model.
sample_rate: f64Fraction of requests that trigger the probe, in [0, 1]. 0.0 = never; 1.0 = always.
Must be finite; validated by Config::parse.
Trait Implementations§
Source§impl Clone for ProbeConfig
impl Clone for ProbeConfig
Source§fn clone(&self) -> ProbeConfig
fn clone(&self) -> ProbeConfig
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 moreimpl Copy for ProbeConfig
Source§impl Debug for ProbeConfig
impl Debug for ProbeConfig
Source§impl<'de> Deserialize<'de> for ProbeConfig
impl<'de> Deserialize<'de> for ProbeConfig
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 ProbeConfig
impl RefUnwindSafe for ProbeConfig
impl Send for ProbeConfig
impl Sync for ProbeConfig
impl Unpin for ProbeConfig
impl UnsafeUnpin for ProbeConfig
impl UnwindSafe for ProbeConfig
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