The official PHP SDK for Sentry (sentry.io)
MIT License
Bot releases are visible (Hide)
Published by HazAT about 4 years ago
UserDataBag
class (#1108)Published by HazAT about 4 years ago
Published by HazAT about 4 years ago
Published by HazAT about 4 years ago
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.
Hub
class a singleton (#1038)error_types
option from E_ALL
to the value get from error_reporting()
(#1037)string
rather than an object instance from the transport, the client and the hub (#1036)Options
class. (#1047)ModulesIntegration
integration (#1047)RequestIntegration
integration (#1047)Breadcrumb
class (#1047)ClientBuilderInterface
interface and its implementations (#1047)Scope::setUser()
method now always merges the given data with the existing one instead of replacing it as a whole (#1047)Context::CONTEXT_USER
, Context::CONTEXT_RUNTIME
, Context::CONTEXT_TAGS
, Context::CONTEXT_EXTRA
, Context::CONTEXT_SERVER_OS
constants (#1047)UserContext
, ExtraContext
and Context
classes and refactor the ServerOsContext
and RuntimeContext
classes (#1071)FlushableClientInterface
and the ClosableTransportInterface
interfaces (#1079)SpoolTransport
transport and all its related classes (#1080)EnvironmentIntegration
integration to gather data for the os
and runtime
contexts (#1071)traces_sampler
option to set custom sample rate callback (#1083)Event
class (#1085)7.2
and the minimum version of some dependencies (#1088)captureEvent
to only accept an instance of the Event
class rather than also a plain array (#1094)Published by HazAT about 4 years ago
timeout
and proxy
options for the Symfony HTTP Client (#1084)Published by HazAT about 4 years ago
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.
Hub
class a singleton (#1038)error_types
option from E_ALL
to the value get from error_reporting()
(#1037)string
rather than an object instance from the transport, the client and the hub (#1036)Options
class. (#1047)ModulesIntegration
integration (#1047)RequestIntegration
integration (#1047)Breadcrumb
class (#1047)ClientBuilderInterface
interface and its implementations (#1047)Scope::setUser()
method now always merges the given data with the existing one instead of replacing it as a whole (#1047)Context::CONTEXT_USER
, Context::CONTEXT_RUNTIME
, Context::CONTEXT_TAGS
, Context::CONTEXT_EXTRA
, Context::CONTEXT_SERVER_OS
constants (#1047)UserContext
, ExtraContext
and Context
classes and refactor the ServerOsContext
and RuntimeContext
classes (#1071)FlushableClientInterface
and the ClosableTransportInterface
interfaces (#1079)SpoolTransport
transport and all its related classes (#1080)EnvironmentIntegration
integration to gather data for the os
and runtime
contexts (#1071)Published by HazAT about 4 years ago
Options::setEnvironment
method not accepting null
values (#1057)RequestIntegration
integration when the stream size is unknown (#1064)Published by HazAT about 4 years ago
Published by HazAT over 4 years ago
Published by HazAT over 4 years ago
RequestFetcherInterface
to allow customizing the request data attached to the logged event (#984)AbstractSerializer
to accept Traversable
values using is_iterable
instead of is_array
(#991)ModulesIntegration
integration to improve its code and its tests (#990)GzipEncoderPlugin
class (#1012)FrameContextifierIntegration
integration (#1011)context_lines
option and fix its behavior when passing null
to make it working as described in the documentation (#1003)prefixes
option (#1016)Published by HazAT over 4 years ago
HttpTransport
and removed pre-init of promises (fixes "too many open files" errors) (#981)http_proxy
option not being applied (#978)Published by stayallive over 4 years ago
Please note that the
1.x
branch of the Sentry PHP SDK is no longer actively maintained and will only receive bug-fix and security updates.
mb_substr
instead of substr
if available (#734)default_max_depth
in Raven_Serializer
(#632)Published by HazAT over 4 years ago
Event
by calling Event::setStacktrace(null)
(#961)event.stacktrace
and event.exceptions
when attach_stacktrace = true
(#960)http_proxy option
(#951)Published by HazAT almost 5 years ago
in_app_include
option to whitelist paths that should be marked as part of the app (#909)Client::captureEvent
not considering the attach_stacktrace
option (#940)ramsey/uuid
dependency with uuid_create
from the PECL uuid
extension or symfony/polyfill-uuid
(#937)Scope::setUser
behaviour of replacing user data. (#929)$merge
parameter on Scope::setUser
to allow merging user context. (#929)integrations
option accept a callable
that will receive the list of default integrations and returns a customized list (#919)IgnoreErrorsIntegration
integration to deprecate and replace the exclude_exceptions
option (#928)zendframework/zend-diactoros
with guzzlehttp/psr7
(#945)Published by HazAT almost 5 years ago
Published by HazAT almost 5 years ago
Published by HazAT almost 5 years ago
$errcontext
argument of the ErrorHandler::handleError()
method nullable
(#917)Published by HazAT almost 5 years ago
critical
breadcrumb level by replacing it with the fatal
level (#901)HttpTransport
transport (#905)Published by HazAT about 5 years ago
Sentry\Transport\HttpTransport
(#899)Published by HazAT about 5 years ago
Sentry\Transport\HttpTransport
(#884)