Releases: getsentry/sentry-php
Releases · getsentry/sentry-php
2.2.1
2.2.0
- Change type hint for both parameter and return value of
HubInterface::getCurrentHubandHubInterface::setCurrentHub()methods (#849) - Add the
setTags,setExtrasandclearBreadcrumbsmethods to theScopeclass (#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::getCurrentandHub::setCurrentmethods to set the current hub instance (#847)
2.1.3
2.1.2
- Fix
TypeErrorinSentry\Monolog\Handlerwhen the extra data array has numeric keys (#833). - Fix sending of GZIP-compressed requests when the
enable_compressionoption istrue(#857) - Fix error thrown when trying to set the
transactionattribute 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
- Fix the behavior of the
excluded_exceptionsoption: now it's used to skip capture of exceptions, not to purge theexceptiondata 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_ADDRserver variable rather than HTTP header - Fix exception, open_basedir restriction in effect (#824)
2.1.0
- Mark Sentry internal frames when using
attach_stacktraceasin_appfalse(#786) - Increase default severity of
E_RECOVERABLE_ERRORtoSeverity::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_ENVRIONMENTandSENTRY_RELEASEenvironment variables (#810) - Add the
class_serializersoption to make it possible to customize how objects are serialized in the event payload (#809) - Fix the default value of the
$exceptionsproperty 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
2.0.0
Version 2.0.0 is a complete rewrite of the existing SDK.
Code Changes are needed. Please see UPGRADE 2.0 for more details.
2.0.0-beta2
- Rename
SentryAuthclass toSentryAuthentication(#742) Clientclass is now final- Fix issue with
ClientBuilder: factories are not instantiated if transport is set manually (#747) - Rename
excluded_pathstoin_app_excludeoption to follow Unified API spec (#755) - Add
max_value_lengthoption to trim long values during serialization (#754) - Lower the default
send_attemptsto 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
ErrorHandlerand 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_linesoptions changed the default to5and is properly applied (#743) - Add support for "formatted messages" in
captureEventas payload (#752) - Fix issue when capturing exceptions to remove warning when converting array args (#761)
2.0.0-beta1
- Require PHP >= 7.1
- Refactorize the whole codebase to support the Unified API SDK specs
- See the UPGRADE.md document for more information.