pub struct OperatorMetrics { /* private fields */ }Expand description
Operator-stage handles (spate_operator_*).
error_type names what the stage did with an error. A stage carries no
error class of its own, so the retryable class belongs to
SinkShardMetrics.
Implementations§
Source§impl OperatorMetrics
impl OperatorMetrics
Sourcepub fn new(labels: &ComponentLabels) -> Self
pub fn new(labels: &ComponentLabels) -> Self
Resolve all operator handles.
Sourcepub fn batch(&self, records_in: u64, records_out: u64, d: Duration)
pub fn batch(&self, records_in: u64, records_out: u64, d: Duration)
Record one processed batch.
Sourcepub fn unrouted(&self, n: u64)
pub fn unrouted(&self, n: u64)
Count records dropped because they matched no split-sink branch and
the split’s unmatched policy is Skip.
Sourcepub fn record_errors(&self, n: u64)
pub fn record_errors(&self, n: u64)
Count records whose failure the Skip error policy dropped.
Sourcepub fn fatal_error(&self)
pub fn fatal_error(&self)
Count one failure that stopped the pipeline.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OperatorMetrics
impl !UnwindSafe for OperatorMetrics
impl Freeze for OperatorMetrics
impl Send for OperatorMetrics
impl Sync for OperatorMetrics
impl Unpin for OperatorMetrics
impl UnsafeUnpin for OperatorMetrics
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