pub struct AnalyticsConfig {
pub track_execution_time: bool,
pub track_memory_usage: bool,
pub track_success_rate: bool,
pub sampling_rate: f64,
pub retention_period: Duration,
pub max_recent_samples: usize,
}Expand description
Configuration for analytics collection
Fields§
§track_execution_time: boolWhether to track detailed execution timing
track_memory_usage: boolWhether to estimate memory usage
track_success_rate: boolWhether to track success/failure rates
sampling_rate: f64Sampling rate (0.0 to 1.0) - 1.0 means track everything
retention_period: DurationHow long to retain detailed metrics
max_recent_samples: usizeMaximum number of recent execution times to keep per rule
Implementations§
Source§impl AnalyticsConfig
impl AnalyticsConfig
Sourcepub fn production() -> Self
pub fn production() -> Self
Production-ready configuration with reasonable sampling
Sourcepub fn development() -> Self
pub fn development() -> Self
Development configuration with full tracking
Trait Implementations§
Source§impl Clone for AnalyticsConfig
impl Clone for AnalyticsConfig
Source§fn clone(&self) -> AnalyticsConfig
fn clone(&self) -> AnalyticsConfig
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 AnalyticsConfig
impl Debug for AnalyticsConfig
Auto Trait Implementations§
impl Freeze for AnalyticsConfig
impl RefUnwindSafe for AnalyticsConfig
impl Send for AnalyticsConfig
impl Sync for AnalyticsConfig
impl Unpin for AnalyticsConfig
impl UnwindSafe for AnalyticsConfig
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