pub struct CoordinatorMetrics { /* private fields */ }Expand description
Coordinator-level metrics. All fields are atomic for thread-safe increments from the coordinator’s connection handler threads.
Implementations§
Source§impl CoordinatorMetrics
impl CoordinatorMetrics
Sourcepub fn record_session_created(&self)
pub fn record_session_created(&self)
Record a session creation.
Sourcepub fn record_session_completed(&self)
pub fn record_session_completed(&self)
Record a session completion.
Sourcepub fn record_session_expired(&self)
pub fn record_session_expired(&self)
Record a session expiration.
Sourcepub fn record_session_aborted(&self)
pub fn record_session_aborted(&self)
Record a session abort.
Sourcepub fn record_aggregation_attempted(&self)
pub fn record_aggregation_attempted(&self)
Record an aggregation attempt.
Sourcepub fn record_aggregation_failed(&self)
pub fn record_aggregation_failed(&self)
Record a failed aggregation.
Sourcepub fn set_registered_signers(&self, count: u64)
pub fn set_registered_signers(&self, count: u64)
Set the registered signer count.
Sourcepub fn record_bytes(&self, bytes: u64)
pub fn record_bytes(&self, bytes: u64)
Record bytes processed.
Sourcepub fn render_prometheus(&self) -> String
pub fn render_prometheus(&self) -> String
Render metrics in Prometheus text exposition format.
Trait Implementations§
Source§impl Debug for CoordinatorMetrics
impl Debug for CoordinatorMetrics
Source§impl Default for CoordinatorMetrics
impl Default for CoordinatorMetrics
Source§fn default() -> CoordinatorMetrics
fn default() -> CoordinatorMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for CoordinatorMetrics
impl RefUnwindSafe for CoordinatorMetrics
impl Send for CoordinatorMetrics
impl Sync for CoordinatorMetrics
impl Unpin for CoordinatorMetrics
impl UnsafeUnpin for CoordinatorMetrics
impl UnwindSafe for CoordinatorMetrics
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