use atomic int/long inside metric handlers