Laravel AI

Learn about Sentry's Laravel AI integration.

The Laravel AI integration connects Sentry with the Laravel AI package. It powers Agent Tracing for Laravel applications.

  • sentry/sentry-laravel version 4.27.0 or later
  • Laravel 12.x or later
  • laravel/ai installed and configured
  • Tracing enabled in your Sentry configuration

When tracing is active and laravel/ai is installed, Sentry automatically captures:

  • Agent invocations
  • LLM requests
  • Tool executions
  • Embeddings
  • Token usage
  • Model and provider metadata
  • Conversation IDs from Laravel AI's remembering conversations feature

For setup, provider support, privacy controls, and verification, see Set Up Agent Tracing.

Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").