Who Sent That Request? AI Gateway Logs Now Show the User Agent!
Hey there, it's me, Shiichan! Today I found a small but genuinely handy update, so let me share it with you.
Cloudflare ChangelogWhat was announced?
This comes from the Cloudflare Changelog. AI Gateway logs now capture the user agent of the client that made each request.
That makes it easier to identify which SDK, library, or app the traffic flowing through your gateway came from. The post gives an example: you can tell apart requests from openai-python versus a custom application or a Cloudflare Worker.
The story so far
Up to now, AI Gateway logs recorded the request details but not a user agent showing who sent it. So when several apps or SDKs shared one gateway, it was easy to get a little lost wondering which client a burst of traffic belonged to.
What changes
The user agent now shows up alongside the other details in each log entry, so even with mixed clients you can slice the view by sender.
The nice part: you can filter logs by user agent right in the dashboard, using equals, does not equal, or contains. That makes investigations like "show me only requests from a specific SDK" much easier.
Dive Deep
There's no special setup needed. Just open your logs and the user agent is right there. It's handy for chasing down "which app threw this error?" or for understanding how much each client is calling your gateway.
Wrap-up
- AI Gateway logs now record the user agent of each request
- It's easier to tell which SDK, library, or app the traffic came from
- You can filter by user agent in the dashboard with equals / does not equal / contains
A small but practical update that's great for anyone sharing an AI Gateway across multiple apps or wanting clearer observability into their traffic!