Add support for metric registration via producer methods