docs(laravel): Add AI monitoring guide#18512
Open
constantinius wants to merge 2 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Document Laravel AI agent monitoring support, including setup, verification, conversation tracking, and feature flags. Link the new guide from AI Monitoring and Conversations docs so users can discover the integration.
cf0b0a0 to
e5cde6e
Compare
coolguyzone
reviewed
Jun 25, 2026
coolguyzone
approved these changes
Jun 25, 2026
coolguyzone
left a comment
Contributor
There was a problem hiding this comment.
Looks good, thanks for the update 🫡
Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
|
|
||
| namespace App\Ai\Tools; | ||
|
|
||
| use Illuminate\Contracts\JsonSchema\JsonSchema; |
Contributor
There was a problem hiding this comment.
Bug: The documentation uses Illuminate\Contracts\JsonSchema\JsonSchema, which is only available in Laravel 13+, but claims support for Laravel 12.x, causing a "class not found" error.
Severity: MEDIUM
Suggested Fix
The documentation should be corrected. Either update the prerequisite to require Laravel 13.x or later, or find the correct namespace for the JsonSchema contract within the laravel/ai 0.x community package and update the code example accordingly.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.
Location: docs/platforms/php/guides/laravel/integrations/laravel-ai.mdx#L92
Potential issue: The code example in the Laravel AI integration guide imports
`Illuminate\Contracts\JsonSchema\JsonSchema`. This namespace is part of the core Laravel
framework and was introduced in version 13. However, the guide's prerequisites state it
supports Laravel 12.x and the community `laravel/ai` 0.x package. Users on a Laravel
12.x installation who follow this guide will encounter a fatal "class not found" error
at runtime, as the specified `JsonSchema` contract does not exist in their environment.
This makes the provided code example unusable for the documented minimum supported
version.
Did we get this right? 👍 / 👎 to inform future reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIBE YOUR PR
Adds docs for Laravel AI agent monitoring with
sentry/sentry-laravel.Contributes to TET-2516
IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: