#[non_exhaustive]pub struct MetricsSection {
pub exporter: MetricsExporter,
pub per_partition_detail: bool,
pub e2e_basis: E2eBasis,
}Expand description
Exporter selection and observability knobs (metrics:).
Construct with MetricsSection::default and set the fields. The struct
is #[non_exhaustive] so new knobs can be added without breaking callers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.exporter: MetricsExporterWhich exporter to install.
per_partition_detail: boolEmit per-partition gauge series (partition label). Off by default:
cardinality grows with the assignment.
e2e_basis: E2eBasisTime basis for spate_e2e_latency_seconds.
Trait Implementations§
Source§impl Debug for MetricsSection
impl Debug for MetricsSection
Source§impl Default for MetricsSection
impl Default for MetricsSection
Source§impl<'de> Deserialize<'de> for MetricsSectionwhere
MetricsSection: Default,
impl<'de> Deserialize<'de> for MetricsSectionwhere
MetricsSection: Default,
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
Source§impl PartialEq for MetricsSection
impl PartialEq for MetricsSection
impl StructuralPartialEq for MetricsSection
Auto Trait Implementations§
impl Freeze for MetricsSection
impl RefUnwindSafe for MetricsSection
impl Send for MetricsSection
impl Sync for MetricsSection
impl Unpin for MetricsSection
impl UnsafeUnpin for MetricsSection
impl UnwindSafe for MetricsSection
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