Releases: getsentry/sentry-php
3.0.3
3.0.2
3.0.1
3.0.0
Migration Guide:
https://github.com/getsentry/sentry-php/blob/master/UPGRADE-3.0.md
These breaking changes are mostly regarding the internal interfaces of the SDK.
If you were consuming the SDK from a pure usage perspective (how we describe it in our docs) there shouldn't be any code changes necessary.
Tracing API / Performance Monitoring
In this version, we released API for Tracing. \Sentry\startTransaction
is your entry point for manual instrumentation.
More information can be found in our Performance docs.
Breaking Change: This version uses the envelope endpoint. If you are
using an on-premise installation it requires Sentry version >= v20.6.0
to work. If you are using
sentry.io nothing will change and no action is needed.
- [BC BREAK] Remove the deprecated code that made the
Hub
class a singleton (#1038) - [BC BREAK] Remove deprecated code that permitted to register the error, fatal error and exception handlers at once (#1037)
- [BC BREAK] Change the default value for the
error_types
option fromE_ALL
to the value get fromerror_reporting()
(#1037) - [BC BREAK] Remove deprecated code to return the event ID as a
string
rather than an object instance from the transport, the client and the hub (#1036) - [BC BREAK] Remove some deprecated methods from the
Options
class. (#1047) - [BC BREAK] Remove the deprecated code from the
ModulesIntegration
integration (#1047) - [BC BREAK] Remove the deprecated code from the
RequestIntegration
integration (#1047) - [BC BREAK] Remove the deprecated code from the
Breadcrumb
class (#1047) - [BC BREAK] Remove the deprecated methods from the
ClientBuilderInterface
interface and its implementations (#1047) - [BC BREAK] The
Scope::setUser()
method now always merges the given data with the existing one instead of replacing it as a whole (#1047) - [BC BREAK] Remove the
Context::CONTEXT_USER
,Context::CONTEXT_RUNTIME
,Context::CONTEXT_TAGS
,Context::CONTEXT_EXTRA
,Context::CONTEXT_SERVER_OS
constants (#1047) - [BC BREAK] Use PSR-17 factories in place of the Httplug's ones and return a promise from the transport (#1066)
- [BC BREAK] The Monolog handler does not set anymore tags and extras on the event object (#1068)
- [BC BREAK] Remove the
UserContext
,ExtraContext
andContext
classes and refactor theServerOsContext
andRuntimeContext
classes (#1071) - [BC BREAK] Remove the
FlushableClientInterface
and theClosableTransportInterface
interfaces (#1079) - [BC BREAK] Remove the
SpoolTransport
transport and all its related classes (#1080) - Add the
EnvironmentIntegration
integration to gather data for theos
andruntime
contexts (#1071) - Refactor how the event data gets serialized to JSON (#1077)
- Add
traces_sampler
option to set custom sample rate callback (#1083) - [BC BREAK] Add named constructors to the
Event
class (#1085) - Raise the minimum version of PHP to
7.2
and the minimum version of some dependencies (#1088) - [BC BREAK] Change the
captureEvent
to only accept an instance of theEvent
class rather than also a plain array (#1094) - Add Guzzle middleware to trace performance of HTTP requests (#1096)
2.5.0
3.0.0-beta1
Tracing API
In this version we released API for Tracing. \Sentry\startTransaction
is your entry point for manual instrumentation.
More information can be found in our Performance docs or specific
PHP SDK docs.
Breaking Change: This version uses the envelope endpoint. If you are
using an on-premise installation it requires Sentry version >= v20.6.0
to work. If you are using
sentry.io nothing will change and no action is needed.
- [BC BREAK] Remove the deprecated code that made the
Hub
class a singleton (#1038) - [BC BREAK] Remove deprecated code that permitted to register the error, fatal error and exception handlers at once (#1037)
- [BC BREAK] Change the default value for the
error_types
option fromE_ALL
to the value get fromerror_reporting()
(#1037) - [BC BREAK] Remove deprecated code to return the event ID as a
string
rather than an object instance from the transport, the client and the hub (#1036) - [BC BREAK] Remove some deprecated methods from the
Options
class. (#1047) - [BC BREAK] Remove the deprecated code from the
ModulesIntegration
integration (#1047) - [BC BREAK] Remove the deprecated code from the
RequestIntegration
integration (#1047) - [BC BREAK] Remove the deprecated code from the
Breadcrumb
class (#1047) - [BC BREAK] Remove the deprecated methods from the
ClientBuilderInterface
interface and its implementations (#1047) - [BC BREAK] The
Scope::setUser()
method now always merges the given data with the existing one instead of replacing it as a whole (#1047) - [BC BREAK] Remove the
Context::CONTEXT_USER
,Context::CONTEXT_RUNTIME
,Context::CONTEXT_TAGS
,Context::CONTEXT_EXTRA
,Context::CONTEXT_SERVER_OS
constants (#1047) - [BC BREAK] Use PSR-17 factories in place of the Httplug's ones and return a promise from the transport (#1066)
- [BC BREAK] The Monolog handler does not set anymore tags and extras on the event object (#1068)
- [BC BREAK] Remove the
UserContext
,ExtraContext
andContext
classes and refactor theServerOsContext
andRuntimeContext
classes (#1071) - [BC BREAK] Remove the
FlushableClientInterface
and theClosableTransportInterface
interfaces (#1079) - [BC BREAK] Remove the
SpoolTransport
transport and all its related classes (#1080) - Add the
EnvironmentIntegration
integration to gather data for theos
andruntime
contexts (#1071) - Refactor how the event data gets serialized to JSON (#1077)
2.4.3
2.4.2
2.4.1
2.4.0
- Enforce a timeout for connecting to the server and for the requests instead of waiting indefinitely (#979)
- Add
RequestFetcherInterface
to allow customizing the request data attached to the logged event (#984) - Log internal debug and error messages to a PSR-3 compatible logger (#989)
- Make
AbstractSerializer
to acceptTraversable
values usingis_iterable
instead ofis_array
(#991) - Refactor the
ModulesIntegration
integration to improve its code and its tests (#990) - Extract the parsing and validation logic of the DSN into its own value object (#995)
- Support passing either a Httplug or PSR-17 stream factory to the
GzipEncoderPlugin
class (#1012) - Add the
FrameContextifierIntegration
integration (#1011) - Add missing validation for the
context_lines
option and fix its behavior when passingnull
to make it working as described in the documentation (#1003) - Trim the file path from the anonymous class name in the stacktrace according to the
prefixes
option (#1016)