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::getCurrentHub
andHubInterface::setCurrentHub()
methods (#849) - Add the
setTags
,setExtras
andclearBreadcrumbs
methods to theScope
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
andHub::setCurrent
methods to set the current hub instance (#847)
2.1.3
2.1.2
- Fix
TypeError
inSentry\Monolog\Handler
when the extra data array has numeric keys (#833). - Fix sending of GZIP-compressed requests when the
enable_compression
option istrue
(#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
- Fix the behavior of the
excluded_exceptions
option: now it's used to skip capture of exceptions, not to purge theexception
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
- Mark Sentry internal frames when using
attach_stacktrace
asin_app
false
(#786) - Increase default severity of
E_RECOVERABLE_ERROR
toSeverity::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
andSENTRY_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
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
SentryAuth
class toSentryAuthentication
(#742) Client
class is now final- Fix issue with
ClientBuilder
: factories are not instantiated if transport is set manually (#747) - Rename
excluded_paths
toin_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 to5
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
- Require PHP >= 7.1
- Refactorize the whole codebase to support the Unified API SDK specs
- See the UPGRADE.md document for more information.