The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.30.0.
Features
-
Add the
crons.monitor_scheduled_tasksconfig option to monitor every scheduled task without adding->sentryMonitor()to each one. (#1202)The schedule of each task is sent along with its check-ins, so Sentry creates the monitors and keeps them in sync. Use
crons.exclude_scheduled_tasksto skip tasks by command, job class, task name or monitor slug, with*as a wildcard.// config/sentry.php 'crons' => [ 'monitor_scheduled_tasks' => env('SENTRY_CRONS_MONITOR_SCHEDULED_TASKS', false), 'exclude_scheduled_tasks' => ['horizon:snapshot', 'scheduled_reports-*'], ],
Tasks with
->sentryMonitor()keep their own settings. Closures without aname(), sub-minute tasks, tasks that can skip runs (when,skip,between), tasks without a named timezone in a non-UTC app and tasks whose schedule Sentry would read differently are not monitored automatically. -
Ignore Laravel Horizon, Laravel Telescope and Laravel Debugbar transactions by default. (#1223)
This only applies if you have not published the config file. To ignore them with a published config, add the pattern to
ignore_transactions:// config/sentry.php 'ignore_transactions' => [ '/up', '/^\/(horizon|telescope|_debugbar)(\/|$)/', ],
-
Shorten the description of
view.renderspans for views rendered from a file, such as Laravel Folio pages, by removing the application base path. (#1228)
Bug Fixes
- Prefer the transaction name set by Laravel for the matched route over the request path when applying the transaction name to events. (#1222)
- Fix dropped transactions caused by an
app.bootstrapspan with a negative duration, which could happen on Laravel Octane or when a route usedArtisan::call. (#1221) - Remove the check-in IDs of launched background tasks from the scheduler context, so they no longer accumulate and grow the payload of jobs dispatched by later scheduled commands. (#1220)
- Omit the
cache.ttlandsession.ttlspan attributes when an entry never expires instead of sendingnull. (#1205)