Skip to content

4.25.0

Latest

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 23 Apr 13:02

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)