Ok, that makes more sense now. Not to spoil your fun in DIY, but are you aware that you can get a simple module that does this? The PZEM-004T for example costs about $13 including a 100A current transformer and delivers the voltage, current, active power, energy, frequency and power factor over a serial interface using the MODBUS protocol.
To do it yourself is not going to be trivial. The current transformer will introduce a phase shift that needs to be calibrated out. If you tap the voltage through an AC isolation transformer (which for a DIY built is definitely the safer way), that transformer itself will introduce its own phase shift to the voltage. Also most stuff, apart from incandescent light bulbs and heaters connected to mains distort the current massively. No resemblance to sine curves at all. Some pretty cool signal processing is needed to calculate active power and accumulate to energy. So besides the challenge of coming up with a circuit that works, you need to think how to calibrate this and verify that the results are reasonably correct.
That said, in principle you are on the right track with your circuit but you need to change your AC transformer to one that has 2 independent secondary windings. One which you you use to produce your DC power from, and the other to get an AC voltage that is referenced to the same ground as the DC and still preserves its shape
It has to be 2 secondary windings, because in your current method, the AC wave form will be totally offset and distorted through the rectifier diodes, it is unavoidable with one common winding.