template <class StatType> void StatsRequest::populateStatsFromScopes(const ScopeVec& scope_vec) {
Stats::IterateFn<StatType> check_stat = [this](const Stats::RefcountPtr<StatType>& stat) -> bool {
if (params_.re2_filter_ != nullptr && !re2::RE2::PartialMatch(name, *params_.re2_filter_)) {
// these. There isn't a shared pointer to hold, so there's no way to safely pause iteration here
// without copying all of the data somewhere. But copying all of the data would be more expensive