github getsentry/sentry-php 4.25.0

10 hours ago

The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.25.0.

Features

  • Add ExceptionToSentryIssueHandler Monolog handler that only captures exceptions as Sentry issues without converting log messages to errors. (#2061)
  • Add metric_flush_threshold option to automatically flush buffered metrics after a configured number of metric records. (#2059)
\Sentry\init([
    'dsn' => '__YOUR_DSN__',
    'metric_flush_threshold' => 50,
]);

Bug Fixes

  • Prevent PHP warnings when trying to increase the memory limit for out-of-memory error handling. (#2063)

Misc

  • Use a RingBuffer for log storage when log_flush_threshold is not set to prevent unbounded memory growth, with a hard cap of 1000 records. (#2058)
  • Add ext-excimer as a Composer suggestion to surface its requirement for profiling. (#2057)

Don't miss a new sentry-php release

NewReleases is sending notifications on new releases.