Change metrics module to allow for declarative metric annotations