github getsentry/sentry-php 4.19.0

6 hours ago

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

Features

// Counter metric
\Sentry\trace_metrics()->count('test-counter', 10, ['my-attribute' => 'foo']);

// Gauge metric
\Sentry\trace_metrics()->gauge('test-gauge', 50.0, ['my-attribute' => 'foo'], \Sentry\Unit::millisecond());

// Distribution metric
\Sentry\trace_metrics()->distribution('test-distribution', 20.0, ['my-attribute' => 'foo'], \Sentry\Unit::kilobyte());

// Flush metrics
\Sentry\trace_metrics()->flush();

Bug Fixes

  • Add rate limiting for profiles and cron check-ins. (#1970)
  • Fix Spotlight so it always registers the error integrations and emits transport logs even when no DSN is configured. (#1964)

Don't miss a new sentry-php release

NewReleases is sending notifications on new releases.