Laravel's new official AI SDK simplifies Sentry tracing for LLM calls through event-driven architecture. Instead of manually wrapping each OpenAI call, a single event listener automatically traces all AI interactions—chat completions, streaming, and embeddings—across any provider. The SDK fires events with invocation IDs that
Table of contents
What changedThe listenerWhat’s different from the manual approachThe same patterns still applyBeyond SentrySort: