Skip to content

Releases: getsentry/sentry-php

3.13.0

06 Feb 16:28
a046ff5
Compare
Choose a tag to compare

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);

3.12.1

12 Jan 12:49
Compare
Choose a tag to compare
  • fix: Allow null on getTracesSampleRate and setTracesSampleRate in Options class (#1441)

3.12.0

22 Nov 11:28
Compare
Choose a tag to compare
  • feat: Add before_send_transaction option (#1424)
  • fix: Set traces_sample_rate to null by default (#1428)

3.11.0

25 Oct 15:10
Compare
Choose a tag to compare
  • fix: Only include the transaction name to the DSC if it has good quality (#1410)
  • ref: Enable the ModulesIntegration by default (#1415)
  • ref: Expose the ExceptionMechanism through the event hint (#1416)

3.10.0

19 Oct 09:40
Compare
Choose a tag to compare
  • ref: Add correct never option for max_request_body_size (#1397)
    • Deprecate max_request_body_size.none in favour of max_request_body_size.never
  • fix: Sampling now correctly takes in account the parent sampling decision if available instead of always being false when tracing is disabled (#1407)

3.9.1

11 Oct 09:04
Compare
Choose a tag to compare
  • fix: Suppress errors on is_callable (#1401)

3.9.0

05 Oct 10:10
Compare
Choose a tag to compare
  • feat: Add tracePropagationTargets option (#1396)
  • feat: Expose a function to retrieve the URL of the CSP endpoint (#1378)
  • feat: Add support for Dynamic Sampling (#1360)
    • Add segment to UserDataBag
    • Add TransactionSource, to set information about the transaction name via TransactionContext::setSource() (#1382)
    • Deprecate TransactionContext::fromSentryTrace() in favor of TransactionContext::fromHeaders()

3.8.1

21 Sep 11:12
Compare
Choose a tag to compare
  • fix: Use constant for the SDK version (#1374)
  • fix: Do not throw an TypeError on numeric HTTP headers (#1370)

3.8.0

05 Sep 15:17
dc599ef
Compare
Choose a tag to compare
  • Add Sentry\Monolog\BreadcrumbHandler, a Monolog handler to allow registration of logs as breadcrumbs (#1199)
  • Do not setup any error handlers if the DSN is null (#1349)
  • Add setter for type on the ExceptionDataBag (#1347)
  • Drop symfony/polyfill-uuid in favour of a standalone implementation (#1346)

3.7.0

18 Jul 08:03
Compare
Choose a tag to compare
  • Fix Scope::getTransaction() so that it returns also unsampled transactions (#1334)
  • Set the event extras by taking the data from the Monolog record's extra (#1330)