The official Symfony SDK for Sentry (sentry.io)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v4.9.0.
Add a new Doctrine DBAL tracing driver that does not implement the deprecated VersionAwarePlatformDriver
(#723)
The driver is automatically picked if doctrine/dbal
version 3.2.0
or higher is installed.
http_connect_timeout
and http_timeout
options (#721)
^3.19
(#725)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v4.8.0.
Set cache keys as span descriptions (#677)
To better identify the source of a cache operation, we now set the cache key as the description of cache
op spans.
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v4.7.0.
Add profiles_sample_rate
config option (#698)
With this new config option, you can now use our new profiling feature in Symfony as well. Please consult https://github.com/getsentry/sentry-php/releases/3.15.0 for setup instructions.
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v4.6.0. This release contains a colorful bouquet of new features.
Report exceptions to Sentry as unhandled by default (#674)
All unhandled exceptions will now be marked as handled: false
. You can query for such events on the issues list page,
by searching for error.handled:false
.
Exceptions from messages which will be retried are sent to Sentry as handled (#674)
All unhandled exceptions happening on the message bus will now be unpacked and reported individually.
The WorkerMessageFailedEvent::willRetry
property is used to determine the handled
value of the event sent to Sentry.
Add register_error_handler
config option (#687)
With this option, you can disable the global error and exception handlers of the base PHP SDK. If disabled, only events logged by Monolog will be sent to Sentry.
sentry:
dsn: '%env(SENTRY_DSN)%'
register_error_listener: false
register_error_handler: false
monolog:
handlers:
sentry:
type: sentry
level: !php/const Monolog\Logger::ERROR
hub_id: Sentry\State\HubInterface
Add before_send_transaction
(#691)
Similar to before_send
, you can now apply additional logic for transaction
events.
You can mutate the transaction
event before it is sent to Sentry. If your callback returns null
,
the event is dropped.
sentry:
options:
before_send_transaction: 'sentry.callback.before_send_transaction'
services:
sentry.callback.before_send_transaction:
class: 'App\Service\Sentry'
factory: [ '@App\Service\Sentry', 'getBeforeSendTransaction' ]
<?php
namespace App\Service;
class Sentry
{
public function getBeforeSendTransaction(): callable
{
return function (\Sentry\Event $event): ?\Sentry\Event {
return $event;
};
}
}
Use the _route
attribute as the transaction name (#692)
If you're using named routes, the SDK will default to use this attribute as the transaction name.
With this change, you should be able to see a full list of your transactions on the performance page,
instead of << unparameterized >>
.
You may need to update your starred transactions as well as your dashboards due to this change.
fix: Update span ops (#655)
TracingDriverConnectionInterface::getNativeConnection()
method to get the original driver connection (#597)options.http_timeout
and options.http_connect_timeout
configuration options (#593)PDOStatement::bindParam()
method and passing $length = null
on DBAL 2.x
(#613)