I try to save user operate logs, include who, when, old value, new value. maybe there are many ways, but I think analyse binlog get gtid and jdbc get gtid is good way.