) {
    for (key, val) in [(&fields_spec.container_id, &container_status.container_id)].iter() {
        if let Some(val) = val {
            log.insert(key.as_str(), val.to_owned());
        }
    }
}

fn annotate_from_container(log: &mut LogEvent, fields_spec: &FieldsSpec, container: &Container) {
    for (key, val) in [(&fields_spec.container_image, &container.image)].iter() {