agent.addRequest parameters have changed

Similar to 12cd13312b1b in node.js