Releases: getsentry/sentry-php
4.14.1
4.14.0
4.13.0
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.13.0.
Features
-
Add regex support for
ignore_exceptions
andignore_transactions
(#1850)You can now use regular expressions to ignore exceptions and transactions:
Sentry\init([ 'ignore_exceptions' => [ '/.*ArgumentException$/', ], 'ignore_transactions' => [ '/^GET \/api\/users\/\d+$/', ], ]);
-
Add support for variadic parameters and null values (#1849)
Bug Fixes
4.12.0
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.12.0.
Features
-
Add support for Sentry Structured Logs (#1813)
You can now send logs directly to Sentry using the new logging API:
Sentry\init([ // Enable logs to be sent to Sentry 'enable_logs' => true, ]);
use function Sentry\logger; // Log messages at different levels logger()->info('User logged in', ['user_id' => 123]); logger()->warn('Deprecated function used', ['function' => 'old_function']); logger()->error('Database connection failed', ['host' => 'db.example.com']); logger()->fatal('Critical system failure: %s', ['Out of memory'], ['component' => 'database']); // Flush logs to Sentry logger()->flush(); // We recommend registering the flushing in a shutdown function register_shutdown_function(static fn () => logger()->flush());
To learn more, head over to our docs.
Bug Fixes
- Log correct source of sampling decision (#1836)
4.11.1
4.11.0
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.11.0.
Features
- Serialize
\DateTimeInterface
objects by default (#1803) - Add support for Propagated Ramdom Value (#1793)
- Use the
SENTRY_SPOTLIGHT
environment variable as the input for thespotlight
configuration option (#1789)
Bug Fixes
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(), );