You're setting delivered_at to be a timestamp after the request was successfully sent. I think this could lead to issues for duration calculation. Don't we want to set the delivered_at timestamp to the time that it was sent, so it doesn't consider in flight time over the wire?