The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v3.7.1.
Bug Fixes
-
Performance traces and breadcrumbs for filesystem access are now turned off by default (#746)
To enable the feature, you'll need to make some changes in your
config/filesystems.php
file for each disk where you want to enable the tracing filesystem driver.// For example, if you want to trace the `local` disk, you update the disk config from this: 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), 'throw' => false, ], // to this: 'local' => [ 'driver' => 'sentry', 'root' => storage_path('app'), 'throw' => false, 'sentry_disk_name' => 'local', 'sentry_original_driver' => 'local', 'sentry_enable_spans' => true, 'sentry_enable_breadcrumbs' => true, ],
For each disk, you replace the
driver
key withsentry
and add thesentry_original_driver
key with the original driver name.
For us to construct the original driver, you also need to add thesentry_disk_name
key with the name of the disk.
In addition, you can specify the optionalsentry_enable_spans
andsentry_enable_breadcrumbs
config keys to turn off that feature for the disk.
These options are enabled by default.Please note that we replace the driver for the disk with a custom driver that will capture performance traces and breadcrumbs.
This means that relying on the disk to be of a specific type might cause problems.
If you rely on the disk being an instance ofIlluminate\Contracts\Filesystem\Filesystem
orIlluminate\Contracts\Filesystem\Cloud
, there should be no problem.