code: def gauge(self, key, gauge=None, default=float("nan"), **dims):
          
          return super(MetricsRegistry, self).gauge(
              self.metadata.register(key, **dims), gauge=gauge, default=default)
docs: Adds gauge with dimensions to the registry