you should invite any stakeholders who can help either identify or solve those problems. This will almost always mean you invite more than the development team, product owner, and Scrum Master or coach. Users, project sponsors, and representatives of other teams should participate. Consider also including those in important roles who look out for consistency and integrity of the product such as architects, designers, and database engineers.
In a more mature agile organization, this should be easier to identify sine product team will be established and devops resources should be already engaged with the team.