Configure RPC metrics handlers and pass them into Thrift RPC Agent (#40602)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/40602
Reviewed By: pritamdamania87
Differential Revision: D22250592
fbshipit-source-id: d38131f30939fc26af241b40e057a9dc1109e950