Hey all, I'd like to discuss exposing server-side load metrics. We already have metrics aggregated that can be enabled and are accessible via the ResultScanner object. However, my company has realized that we would greatly benefit from having more granular, result-specific metrics.
This requires some changes to the client, so I wanted to get some buy-in from developers before shipping this change. Proposed changes: 1. Add a queryMetricsEnabled flag that toggles this feature on and off. We can toggle this feature independently of the existing ScanMetrics. This will be added to the Query object, so server-side load metrics can be enabled for both Scans, and Gets 2. When queryMetricsEnabled is true, Result objects will contain a QueryMetrics objects, which returns server-side load metrics (at the moment, only block bytes scanned) necessitated to return this result object Jira: https://issues.apache.org/jira/browse/HBASE-29090 PR: https://github.com/apache/hbase/pull/6623