Guzzle can do this out of the box! This technique is also used to power some of the checks in Oh Dear.
PHP
Quick tips: Sending Laravel output to Ray automatically
A handy overview of the Ray configuration options in Laravel. You can automatically send duplicate queries, slow queries, exceptions, and dump output straight to Ray without adding any ray() calls to your code. Read more