3.21.0
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.21.0.
Features
-
Add
Sentry::captureCheckIn()(#1573)Sending check-ins from the SDK is now simplified.
$checkInId = Sentry\captureCheckIn( slug: 'monitor-slug', status: CheckInStatus::inProgress() ); // do something Sentry\captureCheckIn( checkInId: $checkInId, slug: 'monitor-slug', status: CheckInStatus::ok() );
You can also pass in a
monitorConfigobject as well as theduration. -
Undeprecate the
tagsoption (#1561)You can now set tags that are applied to each event when calling
Sentry::init().Sentry\init([ 'tags' => [ 'foo' => 'bar', ], ])
-
Apply the
prefixesoption to profiling frames (#1568)If you added the
prefixesoption when callingSentry::init(), this option will now also apply to profile frames.Sentry\init([ 'prefixes' => ['/var/www/html'], ])