code: def add(self, key, metric, **dims):
          
          return super(MetricsRegistry, self).add(
              self.metadata.register(key, **dims), metric)
docs: Adds custom metric instances to the registry with dimensions
          which are not created with their constructors default arguments