Releases: getsentry/sentry-laravel
3.3.0
The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v3.3.0.
This release adds initial support for Cron Monitoring as well as new performance spans and breadcrumbs.
Warning
Cron Monitoring is currently in beta. Beta features are still in-progress and may have bugs. We recognize the irony.
If you have any questions or feedback, please email us at crons-feedback@sentry.io, reach out via Discord (#cronjobs), or open an issue.
Features
-
Add inital support for Cron Monitoring (#659)
After creating your Cron Monitor on https://sentry.io, you can add the
sentryMonitor()macro to your scheduled tasks defined in yourapp/Console/Kernel.phpfile.
This will let Sentry know if your scheduled task started, whether the task was successful or failed, and its duration.protected function schedule(Schedule $schedule) { $schedule->command('emails:send') ->everyHour() ->sentryMonitor('<your-monitor-slug>'); // add this line }
-
Add Livewire tracing integration (#657)
You can enable this feature by adding new config options to your
config/sentry.phpfile.'breadcrumbs' => [ // Capture Livewire components in breadcrumbs 'livewire' => true, ], 'tracing' => [ // Capture Livewire components as spans 'livewire' => true, ],
-
Add Redis operation spans & cache event breadcrumbs (#656)
You can enable this feature by adding new config options to your
config/sentry.phpfile.'breadcrumbs' => [ // Capture Laravel cache events in breadcrumbs 'cache' => true, ], 'tracing' => [ // Capture Redis operations as spans (this enables Redis events in Laravel) 'redis_commands' => env('SENTRY_TRACE_REDIS_COMMANDS', false), // Try to find out where the Redis command originated from and add it to the command spans 'redis_origin' => true, ],
-
Add HTTP client request breadcrumbs (#640)
You can enable this feature by adding a new config option to your
config/sentry.phpfile.'breadcrumbs' => [ // Capture HTTP client requests information in breadcrumbs 'http_client_requests' => true, ],
-
Offer the installation of a JavaScript SDK when running
sentry:publish(#647)
Bug Fixes
- Fix a log channel context crash when unexpected values are passed (#651)
Misc
3.2.0
The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v3.2.0.
This release adds support for Laravel 10.
Features
- Add support for Laravel 10 (#630)
- Thanks to @jnoordsij for their contribution.
- Add
tracing.http_client_requestsoption (#641)-
You can now disable HTTP client tracing in your
config/sentry.phpfile'tracing' => [ 'http_client_requests' => true|false, // This feature is enabled by default ],
-
3.1.3
3.1.2
- Set
traces_sample_ratetonullby default (#616)-
Make sure to update your
config/sentry.php.Replace
'traces_sample_rate' => (float)(env('SENTRY_TRACES_SAMPLE_RATE', 0.0)),with
'traces_sample_rate' => env('SENTRY_TRACES_SAMPLE_RATE') === null ? null : (float)env('SENTRY_TRACES_SAMPLE_RATE'),
-
- Fix exceptions sent via the
report()helper being marked as unhandled (#617)
3.1.1
3.1.0
- Unhandled exceptions are now correctly marked as
handled: falseand displayed as such on the issues list and detail page (#608)- Make sure to update your
App/Exceptions/Handler.phpfile to enable this new behaviour. See https://docs.sentry.io/platforms/php/guides/laravel/
- Make sure to update your
3.0.1
3.0.0
New features
- We are now creating more spans to give you better insights into the performance of your application
- Add a
http.clientspan. This span indicates the time that is spent when using the Laravel HTTP client (#585) - Add a
http.routespan. This span indicates the time that is spent inside a controller method or route closure (#593) - Add a
db.transactionspan. This span indicates the time that is spent inside a database transaction (#594)
- Add a
- Add support for Dynamic Sampling
- Add support for Dynamic Sampling (#572)
Breaking changes
- Laravel Lumen is no longer supported
- Drop support for Laravel Lumen (#579)
- Laravel versions 5.0 - 5.8 are no longer supported
- Drop support for Laravel 5.x (#581)
- Remove
Sentry\Integration::extractNameForRoute(), it's alternativeSentry\Integration::extractNameAndSourceForRoute()is marked as@internal(#580) - Remove internal
Sentry\Integration::currentTracingSpan(), useSentrySdk::getCurrentHub()->getSpan()if you were using this internal method (#592)
Other changes
- Set the tracing transaction name on the
Illuminate\Routing\Events\RouteMatchedinstead of at the end of the request (#580) - Remove extracting route name or controller for transaction names (#583). This unifies the transaction names to a more concise format.
- Simplify Sentry meta tag retrieval, by adding
Sentry\Laravel\Integration::sentryMeta()(#586) - Fix tracing with nested queue jobs (mostly when running jobs in the
syncdriver) (#592)