The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.36.0.
Features
-
Add continuous profiling, which samples the process for as long as the profiler runs and sends the samples in chunks. Enable it with
profile_session_sample_rateand control it with\Sentry\profiler(), includingpause()andresume()between requests in long-running workers, or setprofile_lifecycletotraceto run it while a sampled transaction is active. Requires theexcimerextension. (#2303), (#2310)// Regular profiling, e.g. a request or a CLI command \Sentry\init([ 'dsn' => '__YOUR_DSN__', 'profile_session_sample_rate' => 1.0, ]); \Sentry\profiler()->start(); // ... \Sentry\profiler()->stop();
// Long-running runtimes like FrankenPHP, RoadRunner or Swoole, pause the profiler between requests \Sentry\profiler()->start(); $handler = static function (): void { \Sentry\profiler()->resume(); // Handle the request \Sentry\profiler()->pause(); }; while (frankenphp_handle_request($handler)) { }
-
Add support for PHP 8.6. (#2307)
-
Record more dropped telemetry in client reports, such as ignored events, unsampled transactions, overflowing spans and failed sends. (#2299), (#2306), (#2308), (#2309), (#2316), (#2317), (#2318)