Guzzle is an integral part of our PHP applications. We use it for all third-party API calls; to handle payments, store sensitive user data, get vital information about our users and call services that are a critical part of our applications we can't live without. So what happens when something goes wrong?
In this talk, we explore some valuable ways to use Guzzle middleware to get more information from our API calls. We'll add helpful information to our exception stack traces for error trackers, log what calls get made, get free tracing with OpenZipkin, and metrics for our calls with Prometheus. You'll come out of it with enough information to debug any issue in production!