code: public static String getMetricNameWithTags(String name, String... tags) {
      Preconditions.checkArgument(tags.length % 2 == 0,
          "The tag arguments should be tag name and tag value pairs");
      StringBuilder sb = new StringBuilder();
      sb.append(name);
      for (int i = 0; i < tags.length; i += 2) {
        sb.append('.').append(tags[i]).append(TAG_SEPARATOR).append(tags[i + 1]);
      }
      return sb.toString();
    }
docs: Gets the metric name with the appendix of tags. The returned name is of the pattern
  name[.tagName:tagValue]*.
  
  @param name the metric name
  @param tags the tag name and tag value pairs
  @return the name with the tags appended