Most job seekers wrongly assume they should include their entire work history in their resume. What actually matters is if the work history listed relates to the job you are applying to and how many years of experience you have.
If you're looking for an entry-level job, it is indeed preferable to list any working experience you have, whether it's internships, part-time or summer jobs.
If you have less than 10 years of experience, it is recommended to list all the positions you held to avoid any gap in your resume.
If you have more than 10 years of experience, you can be selective about the jobs included in your resume. This is where your resume writing should focus on positions related to the job you're applying to. When you reach that level of your career, the employer won't care if you worked for 2 years in a fast food. So use your resume space strategically to emphasize what will show emloyers you already have the skills and experience required for the opening they have.