25#include <unordered_map>
28#include "iceberg/iceberg_export.h"
31#include "iceberg/metrics/timer.h"
112 const std::unordered_map<std::string, std::string>& snapshot_summary);
123 static std::unique_ptr<CommitMetrics> Make(
MetricsContext& context);
126 static std::unique_ptr<CommitMetrics> Noop();
148 int64_t snapshot_id = kInvalidSnapshotId;
150 int64_t sequence_number = kInvalidSequenceNumber;
156 std::unordered_map<std::string, std::string>
metadata;
Live commit metrics collected during a table commit operation.
Definition commit_report.h:120
std::shared_ptr< Counter > attempts
Counter for the number of commit attempts (including retries).
Definition commit_report.h:135
std::shared_ptr< Timer > total_duration
Timer measuring total wall-clock time of the commit call.
Definition commit_report.h:132
Factory for creating named Counter and Timer instances.
Definition metrics_context.h:35
Factory interface for creating named Counter and Timer instances.
Serialisable snapshot types shared across scan and commit metrics.
Immutable snapshot of commit metrics for use in CommitReport.
Definition commit_report.h:42
std::optional< CounterResult > added_equality_delete_files
Equality delete files added.
Definition commit_report.h:56
std::optional< CounterResult > added_positional_deletes
Positional delete records added.
Definition commit_report.h:84
std::optional< CounterResult > added_dvs
Deletion vectors added.
Definition commit_report.h:60
std::optional< CounterResult > total_delete_files
Total live delete files after this commit.
Definition commit_report.h:70
std::optional< CounterResult > removed_equality_deletes
Equality delete records removed.
Definition commit_report.h:92
std::optional< CounterResult > removed_files_size_bytes
Total byte size of files removed.
Definition commit_report.h:80
std::optional< CounterResult > added_delete_files
Number of delete files added in this commit.
Definition commit_report.h:54
std::optional< CounterResult > added_data_files
Number of data files added in this commit.
Definition commit_report.h:48
std::optional< CounterResult > processed_manifest_entries_count
Manifest entries processed in this commit.
Definition commit_report.h:102
std::optional< CounterResult > created_manifest_count
Manifest files created in this commit.
Definition commit_report.h:98
std::optional< CounterResult > removed_dvs
Deletion vectors removed.
Definition commit_report.h:66
std::optional< CounterResult > removed_equality_delete_files
Equality delete files removed.
Definition commit_report.h:68
std::optional< CounterResult > total_positional_deletes
Total positional delete records after this commit.
Definition commit_report.h:88
std::optional< CounterResult > replaced_manifest_count
Manifest files replaced in this commit.
Definition commit_report.h:100
std::optional< CounterResult > total_equality_deletes
Total equality delete records after this commit.
Definition commit_report.h:94
std::optional< CounterResult > total_files_size_bytes
Total byte size of all live files after this commit.
Definition commit_report.h:82
std::optional< CounterResult > added_files_size_bytes
Total byte size of files added.
Definition commit_report.h:78
std::optional< CounterResult > attempts
Number of commit attempts (1 on success without retries).
Definition commit_report.h:46
std::optional< CounterResult > total_records
Total live records after this commit.
Definition commit_report.h:76
std::optional< CounterResult > removed_positional_delete_files
Positional delete files removed.
Definition commit_report.h:64
std::optional< CounterResult > kept_manifest_count
Manifest files kept unchanged in this commit.
Definition commit_report.h:96
std::optional< CounterResult > added_records
Number of records added in this commit.
Definition commit_report.h:72
std::optional< CounterResult > added_positional_delete_files
Positional delete files added.
Definition commit_report.h:58
std::optional< CounterResult > added_equality_deletes
Equality delete records added.
Definition commit_report.h:90
std::optional< TimerResult > total_duration
Total wall-clock duration of the commit attempt.
Definition commit_report.h:44
std::optional< CounterResult > removed_delete_files
Number of delete files removed in this commit.
Definition commit_report.h:62
std::optional< CounterResult > removed_data_files
Number of data files removed in this commit.
Definition commit_report.h:50
std::optional< CounterResult > removed_positional_deletes
Positional delete records removed.
Definition commit_report.h:86
std::optional< CounterResult > total_data_files
Total live data files after this commit.
Definition commit_report.h:52
std::optional< CounterResult > removed_records
Number of records removed in this commit.
Definition commit_report.h:74
Report generated after a commit operation.
Definition commit_report.h:144
std::string operation
The operation that was performed (write, delete, etc.).
Definition commit_report.h:152
CommitMetricsResult commit_metrics
Metrics collected during the commit operation.
Definition commit_report.h:154
std::string table_name
The fully qualified name of the table that was modified.
Definition commit_report.h:146
std::unordered_map< std::string, std::string > metadata
Additional key-value metadata.
Definition commit_report.h:156