Struct mz_persist_client::metrics::SinkMetrics
source · pub struct SinkMetrics {
pub forwarded_batches: Counter,
pub forwarded_updates: Counter,
/* private fields */
}
Expand description
Metrics for the persist sink. (While this lies slightly outside the usual abstraction boundary of the client, it’s convenient to manage them together.
Fields§
§forwarded_batches: Counter
Number of small batches that were forwarded to the central append operator
forwarded_updates: Counter
Number of updates that were forwarded to the centralized append operator
Implementations§
source§impl SinkMetrics
impl SinkMetrics
sourcepub fn for_worker(&self, worker_id: usize) -> SinkWorkerMetrics
pub fn for_worker(&self, worker_id: usize) -> SinkWorkerMetrics
Obtains a SinkWorkerMetrics
instance, which allows for metric reporting
from a specific persist_sink
instance for a given worker. The reports will
update metrics shared across workers, but provide per-worker contributions
to them.
sourcepub fn report_correction_update_deltas(
&self,
correction_len_delta: UpdateDelta,
correction_cap_delta: UpdateDelta
)
pub fn report_correction_update_deltas( &self, correction_len_delta: UpdateDelta, correction_cap_delta: UpdateDelta )
Reports updates to the length and capacity of the correction buffer in the
write_batches
operator of a persist_sink
.
This method updates monotonic metrics based on the deltas and thus can be
called across workers and instances of persist_sink
.
sourcepub fn update_sink_correction_peak_metrics(&self)
pub fn update_sink_correction_peak_metrics(&self)
Updates our estimate of the aggregate peak for the correction buffer length and capacity across workers and persist sink.
This method assumes temporary quiescence on the correction buffer metrics,
i.e., there are no updates to these metrics taking place when the method
is called. This occurs, e.g., after a step_or_park
call.
Trait Implementations§
source§impl Clone for SinkMetrics
impl Clone for SinkMetrics
source§fn clone(&self) -> SinkMetrics
fn clone(&self) -> SinkMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for SinkMetrics
impl !RefUnwindSafe for SinkMetrics
impl Send for SinkMetrics
impl Sync for SinkMetrics
impl Unpin for SinkMetrics
impl !UnwindSafe for SinkMetrics
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
source§impl<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
impl<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
source§fn copy_onto(
self,
target: &mut ConsecutiveOffsetPairs<R, O>
) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
fn copy_onto( self, target: &mut ConsecutiveOffsetPairs<R, O> ) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
RustType::into_proto
.