Add assertions for metrics registration with producer fields