|
iceberg-cpp
|
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< CommitMetrics > | Make (MetricsContext &context) |
| Create a CommitMetrics instance backed by the given MetricsContext. | |
| static std::unique_ptr< CommitMetrics > | Noop () |
| Create a CommitMetrics instance with all-noop timer and counter. | |
Public Attributes | |
| std::shared_ptr< Timer > | total_duration |
| Timer measuring total wall-clock time of the commit call. | |
| std::shared_ptr< Counter > | attempts |
| Counter for the number of commit attempts (including retries). | |
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.