···121121 created_collection = true;
122122 Default::default()
123123 });
124124- collection.push_front(record);
125125- collection.truncate(MAX_BATCHED_RECORDS);
124124+ collection.total_seen += 1;
125125+ collection.samples.push_front(record);
126126+ collection.samples.truncate(MAX_BATCHED_RECORDS);
126127127128 if created_collection {
128129 self.current_batch.records.len() >= MAX_BATCHED_COLLECTIONS // full if we have collections to the max