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
monitorConfig
object as well as theduration
. -
Undeprecate the
tags
option (#1561)You can now set tags that are applied to each event when calling
Sentry::init()
.Sentry\init([ 'tags' => [ 'foo' => 'bar', ], ])
-
Apply the
prefixes
option to profiling frames (#1568)If you added the
prefixes
option when callingSentry::init()
, this option will now also apply to profile frames.Sentry\init([ 'prefixes' => ['/var/www/html'], ])