Sentry AI Tracing with Laravel's AI SDK

In my previous post , I showed how to manually wrap OpenAI calls with Sentry spans to get LLM monitoring in PHP. It worked, but every AI call needed to pass through a tracing method. You had to remember to use it. Laravel now ships an official AI SDK ( laravel/ai ) that changes this. The SDK fires events for every agent interaction, which means tracing becomes a listener. Write it once, and every…