* create a new state and set at the end * propagate labels datasource_uid and ref_id from current state if it's error * copy the state when apply to all
* move expansion of labels and annotations outside of mutex lock * propagate struct but not pointer