You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #537 Deprecate sentry and raven handler types (GromNaN)
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Deprecate `sentry` and `raven` handler types
| Q | A
| ------------- | ---
| Branch? | 3.x
| Bug fix? | no
| New feature? | no
| Deprecations? | yes
| Issues | Fix#489 (comment)
| License | MIT
The upgrade path is to use a "service" handler with `sentry/sentry-symfony` as documented:
https://docs.sentry.io/platforms/php/guides/symfony/logs/
Commits
-------
1902f5e Deprecate `sentry` and `raven` handler types
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
* Drop support for PHP < 8.1
12
12
* Drop support for Symfony < 6.4
13
13
* Add TelegramBotHandler `topic` support
14
+
* Deprecate `sentry` and `raven` handler, use a `service` handler with [`sentry/sentry-symfony`](https://docs.sentry.io/platforms/php/guides/symfony/logs/) instead
@trigger_error('The '.__CLASS__.'class is deprecated since version 2.12 and will be removed in 4.0. Use AddDebugLogProcessorPass in FrameworkBundle instead.', \E_USER_DEPRECATED);
34
+
trigger_deprecation('symfony/monolog-bundle', '2.12', 'The %s class is deprecated and will be removed in 4.0. Use AddDebugLogProcessorPass in FrameworkBundle instead.', __CLASS__);
@trigger_error('The "elasticsearch" handler type is deprecated in MonologBundle since version 3.8.0, use the "elastica" type instead, or switch to the official Elastic client using the "elastic_search" type.', \E_USER_DEPRECATED);
275
+
trigger_deprecation('symfony/monolog-bundle', '3.8', 'The "elasticsearch" handler type is deprecated in MonologBundle since version 3.8.0, use the "elastica" type instead, or switch to the official Elastic client using the "elastic_search" type.');
if (class_exists(HttpCodeActivationStrategy::class)) {
416
-
@trigger_error('The "excluded_404s" option is deprecated in MonologBundle since version 3.4.0, you should rely on the "excluded_http_codes" option instead.', \E_USER_DEPRECATED);
416
+
trigger_deprecation('symfony/monolog-bundle', '3.4', 'The "excluded_404s" option is deprecated, you should rely on the "excluded_http_codes" option instead.');
trigger_deprecation('symfony/monolog-bundle', '3.11', 'The "sentry" handler type is deprecated, use the "sentry/sentry-symfony" and a "service" handler instead.');
trigger_deprecation('symfony/monolog-bundle', '3.11', 'The "raven" handler type is deprecated, use the "sentry/sentry-symfony" and a "service" handler instead.');
@@ -311,6 +315,8 @@ public function testRavenHandlerWhenADSNIsSpecified()
311
315
return;
312
316
}
313
317
318
+
$this->expectDeprecation('Since symfony/monolog-bundle 3.11: The "raven" handler type is deprecated, use the "sentry/sentry-symfony" and a "service" handler instead.');
@@ -337,6 +344,8 @@ public function testRavenHandlerWhenADSNAndAClientAreSpecified()
337
344
return;
338
345
}
339
346
347
+
$this->expectDeprecation('Since symfony/monolog-bundle 3.11: The "raven" handler type is deprecated, use the "sentry/sentry-symfony" and a "service" handler instead.');
@@ -357,6 +367,8 @@ public function testRavenHandlerWhenAClientIsSpecified()
357
367
return;
358
368
}
359
369
370
+
$this->expectDeprecation('Since symfony/monolog-bundle 3.11: The "raven" handler type is deprecated, use the "sentry/sentry-symfony" and a "service" handler instead.');
$this->expectDeprecation('Since symfony/monolog-bundle 3.11: The "sentry" handler type is deprecated, use the "sentry/sentry-symfony" and a "service" handler instead.');
$this->expectDeprecation('Since symfony/monolog-bundle 3.11: The "sentry" handler type is deprecated, use the "sentry/sentry-symfony" and a "service" handler instead.');
423
+
406
424
$container = $this->getContainer(
407
425
[
408
426
[
@@ -433,8 +451,11 @@ public function testSentryHandlerWhenADSNAndAClientAreSpecified()
$this->expectDeprecation('Since symfony/monolog-bundle 3.11: The "sentry" handler type is deprecated, use the "sentry/sentry-symfony" and a "service" handler instead.');
458
+
438
459
$container = $this->getContainer(
439
460
[
440
461
[
@@ -464,8 +485,11 @@ public function testSentryHandlerWhenAClientIsSpecified()
$this->expectDeprecation('Since symfony/monolog-bundle 3.11: The "sentry" handler type is deprecated, use the "sentry/sentry-symfony" and a "service" handler instead.');
0 commit comments