Jzjsnow opened a new issue, #3559: URL: https://github.com/apache/amoro/issues/3559
### Search before asking - [x] I have searched in the [issues](https://github.com/apache/amoro/issues?q=is%3Aissue) and found no similar issues. ### What would you like to be improved? Currently, we have multiple metric classes such as TableOptimizingMetrics, TableSummaryMetrics, and TableOrphanMetrics. Each of these classes is responsible for registering and managing specific metrics related to different aspects of table operations. However, there is a significant amount of duplicated code for registering and unregistering metrics. This duplication makes the code harder to maintain and extend. ### How should we improve? To improve code maintainability and reduce redundancy, we can extract a common abstract class `TableMetrics`. ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Subtasks _No response_ ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
