Upgrade to metrics library v3.0.1, change required namespace and classes.