github getsentry/sentry-php 3.21.0

latest releases: 4.9.0, 4.8.1, 4.8.0...
14 months ago

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 the duration.

  • 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 prefixesoption to profiling frames (#1568)

    If you added the prefixes option when calling Sentry::init(), this option will now also apply to profile frames.

    Sentry\init([
        'prefixes' => ['/var/www/html'],
    ])

Misc

  • Deduplicate profile stacks and frames (#1570)

    This will decrease the payload size of the profile event payload.

  • Add the transaction's sampling decision to the trace envelope header (#1562)

Don't miss a new sentry-php release

NewReleases is sending notifications on new releases.