[rpc][metrics] add initial metric handler classes. (#33153)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/33153
Test Plan: Added unit tests.
Reviewed By: pritamdamania87
Differential Revision: D19615364
fbshipit-source-id: e0447463651390b08ad48e134cb73764d8dcf4f3