code: public void submit(String name, String... metadataEls) {
      if(metadataEls.length % 2 != 0) {
        throw new IllegalArgumentException("Unmatched keys in metadata elements.");
      }
  
      Map<String, String> metadata = Maps.newHashMap();
      for(int i = 0; i < metadataEls.length/2; i++) {
        metadata.put(metadataEls[2 * i], metadataEls[2 * i + 1]);
      }
      submit(name, metadata);
    }
docs: Submits the {@link org.apache.gobblin.metrics.GobblinTrackingEvent} to the {@link org.apache.gobblin.metrics.MetricContext}.
  @param name Name of the event.
  @param metadataEls List of keys and values for metadata of the form key1, value2, key2, value2, ...