conditional tracking of only/ignore

hi, this patch add some ability to customize only/ignore attributes behaviour