pub struct MetricsReport {
pub current: CounterMetrics,
pub total: CounterMetrics,
pub time: TimingMetrics,
pub custom_metrics: HashMap<MetricKey, u64>,
pub transaction: TransactionInfo,
}
Expand description
Data structure containing the actual metrics for a transaction, organized into different categories
Fields§
§current: CounterMetrics
Metrics for the current transaction attempt
total: CounterMetrics
Aggregated metrics across all transaction attempts, including retries
time: TimingMetrics
Time-related metrics for performance analysis
custom_metrics: HashMap<MetricKey, u64>
Custom metrics for the current transaction attempt
transaction: TransactionInfo
Transaction-level information
Implementations§
Source§impl MetricsReport
impl MetricsReport
Sourcepub fn set_read_version(&mut self, version: i64)
pub fn set_read_version(&mut self, version: i64)
Sourcepub fn set_commit_version(&mut self, version: i64)
pub fn set_commit_version(&mut self, version: i64)
Sourcepub fn increment_retries(&mut self)
pub fn increment_retries(&mut self)
Increment the retry counter
Trait Implementations§
Source§impl Clone for MetricsReport
impl Clone for MetricsReport
Source§fn clone(&self) -> MetricsReport
fn clone(&self) -> MetricsReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MetricsReport
impl Debug for MetricsReport
Source§impl Default for MetricsReport
impl Default for MetricsReport
Source§fn default() -> MetricsReport
fn default() -> MetricsReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetricsReport
impl RefUnwindSafe for MetricsReport
impl Send for MetricsReport
impl Sync for MetricsReport
impl Unpin for MetricsReport
impl UnwindSafe for MetricsReport
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