- The function
report_data_sizehas been refactored to have a more accessible visibility by changing frompub(super)topubin theCommittedStatestruct, making it usable outside of its previous scope. - The
record_tx_metricsfunction has been modified to remove the previously commented-out code that invokedreport_data_sizefromcommitted_state. The intention to possibly inline this functionality or refactor the metrics updates is noted. - A new function
update_data_size_metricshas been introduced in theRelationalDBstruct to simplify calling thereport_data_sizemethod, enhancing clarity and direct usage within the database context. - The
storage_monitorfunction has been renamed and refactored tometric_reporter, which is tasked with collecting disk usage statistics and invokingupdate_data_size_metricsfor database state updates. - Various asynchronous operations involving time intervals for disk usage measurement and reporting have been restructured for improved metric collection, reducing unnecessary operations and improving clarity.
- Comments and TODOs are placed where further improvements, such as adding heap usage metrics, are possible, guiding future enhancements.