gRPC stats collecting codec for the client module.
The implementation of StatCodec is based on tonic’s ProstCodec.