Skip to content

3.21.0

Compare
Choose a tag to compare
@getsentry-bot getsentry-bot released this 31 Jul 15:43

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)