code: function extendedCallback(res) {
          timeline.mark(`end:${id}`);
          // add full response data
          moduleData[id].response = getResDataObject(res);
          // flatten object for easy transformation/filtering later
          moduleData[id] = flatten(moduleData[id], { maxDepth: 5 });
          moduleData[id] = filterData(config, moduleData[id]);
  
          // if filter function returns falsey value, drop all data completely
          if (typeof moduleData[id] !== 'object') {
            timeline.data = timeline.data.filter(
              d => !new RegExp(id).test(d.name)
            );
            delete moduleData[id];
          }
  
          if (typeof originalCallback === 'function') {
            return originalCallback.apply(this, [res]);
          }
          return true;
        }
docs: the func to execute at the end of the http call