Skip to content

Releases: getsentry/sentry-php

2.2.1

23 Sep 12:06
Compare
Choose a tag to compare
  • Disable default deprecation warning Sentry\Transport\HttpTransport (#884)

2.2.0

23 Sep 09:43
6798aca
Compare
Choose a tag to compare
  • Change type hint for both parameter and return value of HubInterface::getCurrentHub and HubInterface::setCurrentHub() methods (#849)
  • Add the setTags, setExtras and clearBreadcrumbs methods to the Scope class (#852)
  • Silently cast numeric values to strings when trying to set the tags instead of throwing (#858)
  • Support force sending events on-demand and fix sending of events in long-running processes (#813)
  • Update PHPStan and introduce Psalm (#846)
  • Add an integration to set the transaction attribute of the event (#865)
  • Deprecate Hub::getCurrent and Hub::setCurrent methods to set the current hub instance (#847)

2.1.3

06 Sep 17:06
Compare
Choose a tag to compare
  • Fix GZIP-compressed requests failing when exit($code) was used to terminate the application (#877)

2.1.2

22 Aug 07:52
Compare
Choose a tag to compare
  • Fix TypeError in Sentry\Monolog\Handler when the extra data array has numeric keys (#833).
  • Fix sending of GZIP-compressed requests when the enable_compression option is true (#857)
  • Fix error thrown when trying to set the transaction attribute of the event in a CLI environment (#862)
  • Fix integrations that were not skipped if the client bound to the current hub was not using them (#861)
  • Fix undefined index generated by missing function in class (#823)

2.1.1

13 Jun 11:34
Compare
Choose a tag to compare
  • Fix the behavior of the excluded_exceptions option: now it's used to skip capture of exceptions, not to purge the exception data of the event, which resulted in broken or empty chains of exceptions in reported events (#822)
  • Fix handling of uploaded files in the RequestIntegration, to respect the PSR-7 spec fully (#827)
  • Fix use of REMOTE_ADDR server variable rather than HTTP header
  • Fix exception, open_basedir restriction in effect (#824)

2.1.0

22 May 07:53
Compare
Choose a tag to compare
  • Mark Sentry internal frames when using attach_stacktrace as in_app false (#786)
  • Increase default severity of E_RECOVERABLE_ERROR to Severity::ERROR, instead of warning (#792)
  • Make it possible to register fatal error listeners separately from the error listeners
    and change the type of the reported exception to \Sentry\Exception\FatalErrorException (#788)
  • Add a static factory method to create a breadcrumb from an array of data (#798)
  • Add support for SENTRY_ENVRIONMENT and SENTRY_RELEASE environment variables (#810)
  • Add the class_serializers option to make it possible to customize how objects are serialized in the event payload (#809)
  • Fix the default value of the $exceptions property of the Event class (#806)
  • Add a Monolog handler (#808)
  • Allow capturing the body of an HTTP request (#807)
  • Capture exceptions during serialization, to avoid hard failures (#818)

2.0.1

01 Mar 09:06
Compare
Choose a tag to compare
  • Do no longer report silenced errors by default (#785)
  • New option capture_silenced_error to enable reporting of silenced errors, disabled by default (#785)

2.0.0

25 Feb 08:41
478d0a2
Compare
Choose a tag to compare

Version 2.0.0 is a complete rewrite of the existing SDK.

Code Changes are needed. Please see UPGRADE 2.0 for more details.

  • Updated .gitattributes to reduce package footprint (#770)
  • Use multibyte functions to handle unicode paths (#774)
  • Remove Hub::getScope() to deny direct access to Scope instances (#776)
  • Reintroduce http_proxy option (#775)
  • Added support for HTTPlug 2 / PSR-18 (#777)

2.0.0-beta2

11 Feb 14:06
Compare
Choose a tag to compare
2.0.0-beta2 Pre-release
Pre-release
  • Rename SentryAuth class to SentryAuthentication (#742)
  • Client class is now final
  • Fix issue with ClientBuilder: factories are not instantiated if transport is set manually (#747)
  • Rename excluded_paths to in_app_exclude option to follow Unified API spec (#755)
  • Add max_value_length option to trim long values during serialization (#754)
  • Lower the default send_attempts to 3 (#760)
  • Fix method argument name handling when Xdebug is enabled (#763)
  • Add CI build under Windows with AppVeyor (#758) and fix some bugs
  • Change the ErrorHandler and default integrations behavior: the handler is now a singleton,
    and it's possible to attach a number of callables as listeners for errors and exceptions (#762)
  • The context_lines options changed the default to 5 and is properly applied (#743)
  • Add support for "formatted messages" in captureEvent as payload (#752)
  • Fix issue when capturing exceptions to remove warning when converting array args (#761)

2.0.0-beta1

06 Feb 09:19
Compare
Choose a tag to compare
2.0.0-beta1 Pre-release
Pre-release
  • Require PHP >= 7.1
  • Refactorize the whole codebase to support the Unified API SDK specs
  • See the UPGRADE.md document for more information.