I am timing synchronous requests as suggested here: guzzle-6-get-request-total-time
But I also have a guzzle pool with two or more requests that get batch-executed asynchronously. I need to retrieve the duration each request took to return.
I am certain there is a simple way to retrieve this information that I am just overlooking. The infos are in the underlying curl, I am just unsure how to get to them.
Turns out, by listening to the complete event, one can catch the entire transferinfo:
The TransferInfo has much more, but all I needed was the request url to identify which API was being requested and the total time as the duration.