Releases: getsentry/sentry-php
4.10.0
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.10.0.
Features
- The SDK was updated to support PHP 8.4 (#1760)
- Expose a new
http_ssl_native_ca
option to tell the HTTP client to use the operating system's native CA store for certificate verification (#1766)
Bug Fixes
- Fix the
http_timeout
&http_connect_timeout
options, which now also work with sub second values (#1785)
Misc
4.9.0
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.9.0.
Features
4.8.1
4.8.0
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.8.0.
Features
-
Add timing span when emiting a timing metric (#1717)
use function Sentry\metrics; // This will now both emit a distribution metric and a span with the "expensive-operation" key metrics()->timing( key: 'expensive-operation', callback: fn() => doExpensiveOperation(), );
Bug Fixes
Misc
4.7.0
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.7.0.
Features
- Improve debugging experience by emitting more logs from the SDK (#1705)
- Handle
metric_bucket
rate limits (#1726) & (#1728)
Bug Fixes
- Fix deprecation notice when trying to serialize a callable (#1732)
Misc
4.6.1
4.6.0
4.5.0
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.5.0.
Features
-
Add
before_send_check_in
andbefore_send_metrics
(#1690)\Sentry\init([ 'before_send_check_in' => function (\Sentry\Event $event) { $checkIn = $event->getCheckIn(), // modify the check-in or return null to not send it }, ]);
\Sentry\init([ 'before_send_metrics' => function (\Sentry\Event $event) { $metrics = $event->getMetrics(), // modify the metrics or return null to not send it }, ]);
Bug Fixes
4.4.0
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.4.0.
Features
-
Add
metrics()->timing()
(#1670)This allows you to emit a distribution metric based on the duration of the provided callback.
use function Sentry\metrics; metrics()->timing( key: 'my-metric', callback: fn() => doSomething(), );
-
Add
withMonitor()
(#1679)This wraps a callback into monitor check-ins.
use function Sentry\withMonitor; withMonitor( slug: 'my-monitor', callback: fn () => doSomething(), monitorConfig: new MonitorConfig(...), );
-
Add new
failure_issue_threshold
andrecovery_threshold
configuration toMonitorConfig
(#1685) -
Add
TransactionContext::make()
andSpanContext::make()
(#1684)use Sentry\Tracing\SpanContext; $spanCpntext = SpanContext::make() ->setOp('http.client') ->setDescription('GET https://example.com')
-
Add support for fluent use of
Transaction::setName()
(#1687) -
Add support for the W3C
traceparent
header (#1680)
Bug Fixes
-
Do not send an empty event if no metrics are in the bucket (#1676)
-
Fix the
http_ssl_verify_peer
option to set the correct value toCURLOPT_SSL_VERIFYPEER
(#1686)
Misc
- Depreacted
UserDataBag::getSegment()
andUserDataBag::setSegment()
. You may use a custom tag or context instead (#1681)