docs: private static int encodeTag(Tag tag, StringBuilder stringBuilder) {
      String key = tag.getKey().getName();
      String value = tag.getValue().asString();
      int charsOfTag = key.length() + value.length();
      // This should never happen with our current constraints (<= 255 chars) on tags.
      checkArgument(
          charsOfTag <= TAG_SERIALIZED_SIZE_LIMIT,
          "Serialized size of tag " + tag + " exceeds limit " + TAG_SERIALIZED_SIZE_LIMIT);
  
      // TODO(songy23): do we want to encode TagMetadata?
      stringBuilder.append(key).append(TAG_KEY_VALUE_DELIMITER).append(value);
      return charsOfTag;
    }