Tag based data collection framework