github getsentry/sentry-php 4.33.0

3 hours ago

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

Features

  • Add the data_collection option to control which potentially sensitive data the SDK collects. Setting it to any value other than null opts into the new behavior and ignores send_default_pii. (#2227)

    \Sentry\init([
        'dsn' => '__YOUR_DSN__',
        'data_collection' => [
            'cookies' => ['mode' => 'allowList', 'terms' => ['locale']],
            'http_bodies' => ['incomingRequest'],
            'stack_frame_variables' => false,
        ],
    ]);
  • Allow registering a fallback serializer for any object by using object as the key in class_serializers. (#2232)

  • Apply rate limits to attachments. (#2233)

Bug Fixes

  • Respect rate limits on 429 responses that include a response body. (#2225)
  • Parse every limit in the X-Sentry-Rate-Limits header instead of falling back to the default duration for all but the first one. (#2226)
  • Keep the longest rate limit when multiple limits apply to the same category, apply the default rate limit to 429 responses without rate limit headers, and handle decimal durations. (#2234)

Misc

  • Exclude development files from the distributed package. (#2230)

Don't miss a new sentry-php release

NewReleases is sending notifications on new releases.