github getsentry/sentry-php 3.13.0

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

The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.13.0.

Features

  • Object IDs are now automatically serialized as part of a stack trace frame (#1443)

  • Add more functionality to the ExceptionMechanism::class (#1450)

    • Attach arbitrary data
      $hint = EventHint::fromArray([
          'exception' => $exception,
          'mechanism' => new ExceptionMechanism(
              ExceptionMechanism::TYPE_GENERIC,
              false,
              [
                  'key' => 'value',
                  //...
              ],
          ),
      ]);
      captureEvent(Event::createEvent(), $hint);
      Learn more about the interface of the ExceptionMechanism on https://develop.sentry.dev/sdk/event-payloads/exception/#exception-mechanism
    • Access or mutate ExceptionMechanism::data via ExceptionMechanism::getData() and ExceptionMechanism::setData()
    • If an exception contains a user-provided code, the value will be serialized into the event and displayed on the issues details page.
      throw new \Exception('Oh no!', 123);

Don't miss a new sentry-php release

NewReleases is sending notifications on new releases.