If this is for container backends, then for each variable I would just call a `record(value)` on the corresponding container for that variable's samples.