github getsentry/sentry-php 4.36.0

3 hours ago

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_rate and control it with \Sentry\profiler(), including pause() and resume() between requests in long-running workers, or set profile_lifecycle to trace to run it while a sampled transaction is active. Requires the excimer extension. (#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)

Don't miss a new sentry-php release

NewReleases is sending notifications on new releases.