docs: def CollectMetrics(self, request, context):
          """Dispatches the request to the plugins collect method"""
          LOG.debug("CollectMetrics called")
          try:
              metrics_to_collect = []
              for metric in request.metrics:
                  metrics_to_collect.append(Metric(pb=metric))
              metrics_collected = self.plugin.collect(metrics_to_collect)
              return MetricsReply(metrics=[m.pb for m in metrics_collected])
          except Exception as err:
              msg = "message: {}\n\nstack trace: {}".format(
                  err, traceback.format_exc())
              return MetricsReply(metrics=[], error=msg)