iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
iceberg::CommitMetrics Class Reference

Live commit metrics collected during a table commit operation. More...

#include <commit_report.h>

Public Member Functions

CommitMetricsResult ToResult () const
 Snapshot current timer and counter values into a CommitMetricsResult.
 

Static Public Member Functions

static std::unique_ptr< CommitMetricsMake (MetricsContext &context)
 Create a CommitMetrics instance backed by the given MetricsContext.
 
static std::unique_ptr< CommitMetricsNoop ()
 Create a CommitMetrics instance with all-noop timer and counter.
 

Public Attributes

std::shared_ptr< Timertotal_duration
 Timer measuring total wall-clock time of the commit call.
 
std::shared_ptr< Counterattempts
 Counter for the number of commit attempts (including retries).
 

Detailed Description

Live commit metrics collected during a table commit operation.

Tracks the overall commit duration and retry count. File/record counts come from the snapshot summary after the commit succeeds and are stored separately in CommitMetricsResult.


The documentation for this class was generated from the following files: