The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.10.0.
- Add support for
strict_trace_continuationandorg_idto continue incoming traces only when they belong to the same Sentry organization. (#1002) - Add
ConsoleInputSerializerto capture console command arguments and options viaclass_serializers. (#1007) - Add support for
log_flush_thresholdto flush logs once a configured batch size is reached. (#1012) - Add support for
Sentry\Integration\OTLPIntegration. (#1014) - Add
tracing.dbal.ignore_prepare_spansto suppressdb.sql.preparespans for prepared queries. (#1016) - Isolate runtime context between HTTP requests on persistent workers, and add
messenger.isolate_context_by_messageto prevent scope, logs, and metrics data from leaking across messages. (#997)
- Remove the deprecated
traceparentheader. (#1005)
- Bump
sentry-phpversion to4.23.0. (#1012)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.9.0.
- Bump
sentry-phpversion to4.20.0. (#996)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.8.3.
- Using caches with namespaces will no longer cause an error. (#986)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.8.2.
- Move
symfony/yamlto a non-dev dependency. (#983)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.8.1.
- Add support for
before_send_metricandenable_metrics. (#981)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.8.0.
- Add support for Sentry metrics. ([#977])(#977)
// Counter metric
\Sentry\trace_metrics()->count('test-counter', 10, ['my-attribute' => 'foo']);
// Gauge metric
\Sentry\trace_metrics()->gauge('test-gauge', 50.0, ['my-attribute' => 'foo'], \Sentry\Unit::millisecond());
// Distribution metric
\Sentry\trace_metrics()->distribution('test-distribution', 20.0, ['my-attribute' => 'foo'], \Sentry\Unit::kilobyte());The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.7.0.
- Add support for Symfony 8. (#968)
- Add
neveras valid option formax_request_body_size. (#966)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.6.0.
- Remove upper limit for
max_breadcrumbsoption. (#953) - Allow passing string and enum Monolog level. (#959)
services:
Sentry\SentryBundle\Monolog\LogsHandler:
arguments:
- 'info'# or using PSR constants
services:
Sentry\SentryBundle\Monolog\LogsHandler:
arguments:
- !php/const Psr\Log\LogLevel::INFO// or via PHP config
$container->services()
->set(\Sentry\SentryBundle\Monolog\LogsHandler::class)
->args([\Monolog\Level::Info]);The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.5.0.
- Enable auto-instrumentation for the Symfony Cache Component (#942)
- Add a new config flag to reset breadcrumbs between Symfony messages (#946)
sentry:
messenger:
isolate_breadcrumbs_by_message: true- Allow to pass in callbacks to configure SDK integrations (#947)
services:
App\IntegrationCallback:
factory: ['App\IntegrationCallback', 'factory']
sentry:
options:
integrations: 'App\IntegrationCallback'The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.4.1.
- Support named arguments in BufferFlushPass. (#948)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.4.0.
- Introduce Sentry Structured Logging support. (#940)
sentry:
options:
enable_logs: true
services:
Sentry\SentryBundle\Monolog\LogsHandler:
arguments:
- !php/const Monolog\Logger::INFO
monolog:
handlers:
sentry_logs:
type: service
id: Sentry\SentryBundle\Monolog\LogsHandler- Add buffer flusher for sentry monolog handler. (#936)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.3.1.
- Fix exception thrown when invalid IP address was captured by the request listener (#931)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.3.0.
- Implement
NamespacedPoolInterfaceforTraceableCacheAdapterForV3(#927)
- Update minimum required version of
sentry/sentryto^4.14.1 - Remove support for
traceparentheader (#928)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.2.0.
-
Allow to configure the logger via the
sentry.yamlconfiguration file (#899)sentry: dsn: "%env(SENTRY_DSN)%" options: logger: "sentry.logger" services: sentry.logger: class: 'Sentry\Logger\DebugFileLogger' arguments: $filePath: '../../var/log/sentry.log'
- Fixed updating the user context when a route is marked as stateless (#910)
- Remove
symfony/security-coreandsymfony/security-httpas dependencies (#912)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.1.0.
- The SDK was updated to support PHP 8.4 (#893)
- Set the status for CLI command transactions based on the exit code (#891)
- Fix including request data on transactions (#879)
The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.0.1.
- Add missing
setCallbackWrappermethod toTraceableCacheAdapterTrait(#841) - Fix detection of the
symfony/http-clientbeing installed (#858)
The Sentry SDK team is thrilled to announce the immediate availability of Sentry Symfony SDK v5.0.0.
Please refer to the UPGRADE-5.0.md guide for a complete list of breaking changes.
This version adds support for the underlying Sentry PHP SDK v4.0. Please refer to the PHP SDK sentry-php/UPGRADE-4.0.md guide for a complete list of breaking changes.
-
This version exclusively uses the envelope endpoint to send event data to Sentry.
If you are using sentry.io, no action is needed. If you are using an on-premise/self-hosted installation of Sentry, the minimum requirement is now version
>= v20.6.0. -
You need to have
ext-curlinstalled to use the SDK. -
The
IgnoreErrorsIntegrationintegration was removed. Use theignore_exceptionsoption instead. Previously, bothSymfony\Component\ErrorHandler\Error\FatalErrorandSymfony\Component\Debug\Exception\FatalErrorExceptionwere ignored by default. To continue ignoring these exceptions, make the following changes to the config file:// config/packages/sentry.yaml sentry: options: ignore_exceptions: - 'Symfony\Component\ErrorHandler\Error\FatalError' - 'Symfony\Component\Debug\Exception\FatalErrorException'
This option performs an
is_acheck now, so you can also ignore more generic exceptions.
-
Add support for Sentry Developer Metrics (#1619)
use function Sentry\metrics; // Add 4 to a counter named hits metrics()->increment(key: 'hits', value: 4); // Add 25 to a distribution named response_time with unit milliseconds metrics()->distribution(key: 'response_time', value: 25, unit: MetricsUnit::millisecond()); // Add 2 to gauge named parallel_requests, tagged with type: "a" metrics()->gauge(key: 'parallel_requests', value: 2, tags: ['type': 'a']); // Add a user's email to a set named users.sessions, tagged with role: "admin" metrics()->set('users.sessions', 'jane.doe@example.com', null, ['role' => User::admin()]);
Metrics are automatically sent to Sentry at the end of a request, hooking into Symfony's
kernel.terminateevent. -
Add new fluent APIs (#1601)
// Before $transactionContext = new TransactionContext(); $transactionContext->setName('GET /example'); $transactionContext->setOp('http.server'); // After $transactionContext = (new TransactionContext()) ->setName('GET /example'); ->setOp('http.server');
-
Simplify the breadcrumb API (#1603)
// Before \Sentry\addBreadcrumb( new \Sentry\Breadcrumb( \Sentry\Breadcrumb::LEVEL_INFO, \Sentry\Breadcrumb::TYPE_DEFAULT, 'auth', // category 'User authenticated', // message (optional) ['user_id' => $userId] // data (optional) ) ); // After \Sentry\addBreadcrumb( category: 'auth', message: 'User authenticated', // optional metadata: ['user_id' => $userId], // optional level: Breadcrumb::LEVEL_INFO, // set by default type: Breadcrumb::TYPE_DEFAULT, // set by default );
-
New default cURL HTTP client (#1589)
The SDK now ships with its own HTTP client based on cURL. A few new options were added.
// config/packages/sentry.yaml sentry: options: - http_proxy_authentication: 'username:password' // user name and password to use for proxy authentication - http_ssl_verify_peer: false // default true, verify the peer's SSL certificate - http_compression: false // default true, http request body compression
To use a different client, you may use the
http_clientoption. To use a different transport, you may use thetransportoption. A custom transport must implement theTransportInterface. If you use thetransportoption, thehttp_clientoption has no effect.
- The abandoned package
php-http/message-factorywas removed.