code: def set_metric_ids(self, key, metric_ids):
          
          with self._lock:
              self._metric_ids[key] = metric_ids
docs: Store the list of metric IDs we will want to collect for the given instance key