-
Bumped the required version of
sentry/sentryto^3.0: this version relies on the envelope endpoint; if you are using an on-premise installation it requires Sentry version>= v20.6.0to work; if you are using sentry.io nothing will change and no action is needed. For further details read the UPGRADE-3.0.md document ofsentry/sentry. -
Added the
$hubargument to the constructor of theSubRequestListenerclass. -
Renamed the
ConsoleListenerclass toConsoleCommandListener. -
Renamed the
ConsoleListener::onConsoleCommandmethod toConsoleCommandListener::handleConsoleCommandEvent. -
Renamed the
ErrorListener::onExceptionmethod toErrorListener::handleExceptionEvent. -
Removed the
ErrorListener::onKernelExceptionmethod. -
Removed the
ErrorListener::onConsoleErrormethod. -
Renamed the
RequestListener::onKernelRequestmethod toRequestListener::handleKernelRequestEvent. -
Renamed the
RequestListener::onKernelControllermethod toRequestListener::handleKernelControllerEvent. -
Renamed the
SubRequestListener::onKernelRequestmethod toSubRequestListener::handleKernelRequestEvent. -
Renamed the
SubRequestListener::onKernelFinishRequestmethod toSubRequestListener::handleKernelFinishRequestEvent. -
Removed the
Sentry\FlushableClientInterfaceservice alias. -
Removed the
sentry.listener_prioritiesconfiguration option.Before:
sentry: listener_priorities: request: 10
After:
use Sentry\SentryBundle\EventListener\RequestListener; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\KernelEvents; final class ChangeSentryListenerPriorityPass implements CompilerPassInterface { public function process(ContainerBuilder $container) { $definition = $container->getDefinition(RequestListener::class); $definitionTags = $definition->getTags(); foreach ($definitionTags['kernel.event_listener'] as &$tags) { if (KernelEvents::REQUEST === $tags['event']) { $tags['priority'] = 10; } } $definition->setTags($definitionTags); } }
-
Removed the
sentry.options.excluded_exceptionsconfiguration option.Before:
sentry: options: excluded_exceptions: - RuntimeException
After:
sentry: options: integrations: - 'Sentry\Integration\IgnoreErrorsIntegration' services: Sentry\Integration\IgnoreErrorsIntegration: arguments: $options: ignore_exceptions: - RuntimeException
-
Changed the priority of the
ConsoleCommandListener::handleConsoleErrorEventlistener to-64. -
Changed the priority of the
ConsoleCommandListener::::handleConsoleCommandEventlistener to128. -
Changed the priority of the
MessengerListener::handleWorkerMessageFailedEventlistener to50. -
Changed the priority of the
RequestListener::handleKernelRequestEventlistener to5. -
Changed the priority of the
RequestListener::handleKernelControllerEventlistener to10. -
Changed the priority of the
SubRequestListener::handleKernelRequestEventlistener to3. -
Changed the priority of the
SubRequestListener::handleKernelFinishRequestEventlistener to5. -
Changed the type of the
sentry.options.before_sendconfiguration option fromscalartostring. The value must always be the name of the container service to call without the@prefix.Before
sentry: options: before_send: '@app.sentry.before_send'
sentry: options: before_send: 'App\Sentry\BeforeSend::__invoke'
sentry: options: before_send: ['App\Sentry\BeforeSend', '__invoke']
After
sentry: options: before_send: 'app.sentry.before_send'
-
Changed the type of the
sentry.options.before_breadcrumbconfiguration option fromscalartostring. The value must always be the name of the container service to call without the@prefix.Before
sentry: options: before_breadcrumb: '@app.sentry.before_breadcrumb'
sentry: options: before_breadcrumb: 'App\Sentry\BeforeBreadcrumb::__invoke'
sentry: options: before_breadcrumb: ['App\Sentry\BeforeBreadcrumb', '__invoke']
After
sentry: options: before_breadcrumb: 'app.sentry.before_breadcrumb'
-
Changed the type of the
sentry.options.class_serializersconfiguration option from an array ofscalarvalues to an array ofstringvalues. The value must always be the name of the container service to call without the@prefix.Before
sentry: options: class_serializers: App\FooClass: '@app.sentry.foo_class_serializer'
sentry: options: class_serializers: App\FooClass: 'App\Sentry\FooClassSerializer::__invoke'
sentry: options: class_serializers: App\FooClass: ['App\Sentry\FooClassSerializer', 'invoke']
After
sentry: options: class_serializers: App\FooClass: 'app.sentry.foo_class_serializer'
-
Changed the type of the
sentry.options.integrationsconfiguration option from an array ofscalarvalues to an array ofstringvalues. The value must always be the name of the container service to call without the@prefix.Before
sentry: options: integrations: - '@app.sentry.foo_integration'
After
sentry: options: integrations: - 'app.sentry.foo_integration'
-
Removed the
ClientBuilderConfiguratorclass. -
Removed the
SentryBundle::getSdkVersion()method. -
Removed the
SentryBundle::getCurrentHub()method, useSentrySdk::getCurrentHub()instead. -
Removed the
Sentry\ClientBuilderInterfaceandSentry\Optionsservices. -
Refactorized the
ErrorTypesParserclass and made it@internal. -
Removed the
sentry.monologconfiguration option.Before
sentry: monolog: level: !php/const Monolog\Logger::ERROR bubble: false error_handler: enabled: true
After
services: Sentry\Monolog\Handler: arguments: $hub: '@Sentry\State\HubInterface' $level: !php/const Monolog\Logger::ERROR $bubble: false
This repository was archived by the owner on Dec 22, 2023. It is now read-only.