pub struct MonitoringConfig {Show 14 fields
pub enable_request_logging: bool,
pub log_level: String,
pub log_format: String,
pub log_file: Option<String>,
pub enable_metrics: bool,
pub metrics_endpoint: String,
pub enable_health_check: bool,
pub health_check_endpoint: String,
pub enable_performance_monitoring: bool,
pub slow_request_threshold_ms: u64,
pub enable_error_tracking: bool,
pub error_tracking_url: Option<String>,
pub enable_distributed_tracing: bool,
pub tracing_endpoint: Option<String>,
}Expand description
Monitoring and logging configuration
Fields§
§enable_request_logging: boolEnable request logging
log_level: StringLog level (error, warn, info, debug, trace)
log_format: StringLog format (json, text)
log_file: Option<String>Log file path (None = stdout)
enable_metrics: boolEnable metrics collection
metrics_endpoint: StringMetrics endpoint path
enable_health_check: boolEnable health check endpoint
health_check_endpoint: StringHealth check endpoint path
enable_performance_monitoring: boolEnable performance monitoring
slow_request_threshold_ms: u64Slow request threshold in milliseconds
enable_error_tracking: boolEnable error tracking
error_tracking_url: Option<String>Error tracking service URL
enable_distributed_tracing: boolEnable distributed tracing
tracing_endpoint: Option<String>Tracing service endpoint
Trait Implementations§
Source§impl Clone for MonitoringConfig
impl Clone for MonitoringConfig
Source§fn clone(&self) -> MonitoringConfig
fn clone(&self) -> MonitoringConfig
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 MonitoringConfig
impl Debug for MonitoringConfig
Auto Trait Implementations§
impl Freeze for MonitoringConfig
impl RefUnwindSafe for MonitoringConfig
impl Send for MonitoringConfig
impl Sync for MonitoringConfig
impl Unpin for MonitoringConfig
impl UnwindSafe for MonitoringConfig
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