pub struct MetricsLeversConfig {
pub enabled: bool,
pub exchange: bool,
pub duration: bool,
pub components: bool,
}Expand description
Metric-family levers for [observability.metrics] in Camel.toml
(dashboard-observability D3).
enabled is the master switch for the non-error families; exchange,
duration, and components are per-family opt-outs (a family flows
only when enabled && <family>). No lever exists for the error family —
camel_errors_total is structurally non-disableable
(metrics-configuration Req 2).
Fields§
§enabled: bool§exchange: bool§duration: bool§components: boolImplementations§
Source§impl MetricsLeversConfig
impl MetricsLeversConfig
Sourcepub fn exchanges_enabled(&self) -> bool
pub fn exchanges_enabled(&self) -> bool
Whether the exchanges counter family may flow.
Sourcepub fn durations_enabled(&self) -> bool
pub fn durations_enabled(&self) -> bool
Whether the duration histogram family may flow.
Sourcepub fn components_enabled(&self) -> bool
pub fn components_enabled(&self) -> bool
Whether the uniform component-operations counter family may flow
(camel_component_operations_total; the error family is never
gated by any lever).
Trait Implementations§
Source§impl Clone for MetricsLeversConfig
impl Clone for MetricsLeversConfig
Source§fn clone(&self) -> MetricsLeversConfig
fn clone(&self) -> MetricsLeversConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MetricsLeversConfig
impl Debug for MetricsLeversConfig
Source§impl Default for MetricsLeversConfig
impl Default for MetricsLeversConfig
Source§impl<'de> Deserialize<'de> for MetricsLeversConfig
Deserializes MetricsLeversConfig via a Raw intermediate with
Option<bool> fields so an absent table and an absent key both mean
“default” (same serde-boundary technique as TracerConfig). Unknown
keys are denied, consistent with the sibling observability tables.
impl<'de> Deserialize<'de> for MetricsLeversConfig
Deserializes MetricsLeversConfig via a Raw intermediate with
Option<bool> fields so an absent table and an absent key both mean
“default” (same serde-boundary technique as TracerConfig). Unknown
keys are denied, consistent with the sibling observability tables.