private void updateTableMetric(String methodName, TableName tableName, CallStats stats,
    Throwable e) {
    if (tableMetricsEnabled) {
      if (methodName != null) {
        String table = tableName != null && StringUtils.isNotEmpty(tableName.getNameAsString())
          ? tableName.getNameAsString()
          : "unknown";
        String metricKey = methodName + "_" + table;
        // update table rpc context to metrics system,
        // includes rpc call duration, rpc call request/response size(bytes).
        updateRpcGeneric(metricKey, stats);
        if (e != null) {
          // rpc failure call counter with table name.
          getMetric(FAILURE_CNT_BASE + metricKey, rpcCounters, counterFactory).inc();
        }
      }
    }
  }
Report table rpc context to metrics system.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetricsConnection.java