sentry-laravel
sentry-laravel copied to clipboard
The official Laravel SDK for Sentry (sentry.io)
This implements (partially) #625. Laravel also has a `Illuminate\Notifications\Events\NotificationFailed`, however this event is actually unused because when a notification fails to sent it just throws an exception from the underlying...
### Problem Statement I would like to have traces for when scheduled commands run via the `Console\Kernel`. We have some heavy jobs that run each hour and they have started...
### How do you use Sentry? Sentry SaaS (sentry.io) ### SDK version 4.1.0 ### Steps to reproduce 1. Enable Laravel instrumentation on an app 2. Using the Sentry UI, examine...
Doing the following: ```php \Illuminate\Database\Eloquent\Model::preventAccessingMissingAttributes(); \Illuminate\Database\Eloquent\Model::handleMissingAttributeViolationUsing( \Sentry\Laravel\Integration::missingAttributeViolationReporter() ); ``` Results in:  Fixes #777.
Based on the work of @stayallive made in #824 I added a reporter for MassAssignmentViolations.
### Problem Statement I just stumble upon a feature in the [documentation ](https://laravel.com/docs/10.x/localization#handling-missing-translation-strings)of Laravel 10 that allows us to perform any action when the framework encounter a missing translation. ###...
### Problem Statement Currently we have performance degradation after enabling `lazyLoadingViolationReporter` on our staging environment. Here is trace before enabling it:  And after enabling...
This works with: getsentry/sentry-php#1574, and is a PoC to show what that PR could be used for. It replaces compiled view paths with their non-compiled paths (the ones you would...
This refactors the way model violation reports to cleanup the code and remove duplication where possible. Also adds memoization (enabled by default) to prevent multiple reports in the same request....
See: https://develop.sentry.dev/sdk/performance/span-data-conventions/#web-server This is not ideal, but I think this is the best we can currently do since we don't have any cache spans other than these unless we decorate...