pub struct MonitoringConfig {
pub collection_interval: Duration,
pub enable_detailed_metrics: bool,
pub enable_distributed_tracing: bool,
pub enable_profiling: bool,
pub enable_debug_logging: bool,
pub export_prometheus: bool,
pub export_jaeger: bool,
pub export_influxdb: bool,
pub custom_metrics: Vec<String>,
pub alerting: AlertingConfig,
pub sampling_config: SamplingConfig,
}Expand description
Monitoring and observability configuration
Fields§
§collection_interval: DurationMetrics collection interval
enable_detailed_metrics: boolEnable detailed performance metrics
enable_distributed_tracing: boolEnable distributed tracing
enable_profiling: boolEnable execution profiling
enable_debug_logging: boolEnable debug logging
export_prometheus: boolExport metrics to Prometheus
export_jaeger: boolExport traces to Jaeger
export_influxdb: boolExport metrics to InfluxDB
custom_metrics: Vec<String>Custom metrics to collect
alerting: AlertingConfigAlerting configuration
sampling_config: SamplingConfigSampling configuration for tracing
Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more