-
Bumped the required version of
sentry/sentry
to^3.0
: this version relies on the envelope endpoint; if you are using an on-premise installation it requires Sentry version>= v20.6.0
to 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
$hub
argument to the constructor of theSubRequestListener
class. -
Renamed the
ConsoleListener
class toConsoleCommandListener
. -
Renamed the
ConsoleListener::onConsoleCommand
method toConsoleCommandListener::handleConsoleCommandEvent
. -
Renamed the
ErrorListener::onException
method toErrorListener::handleExceptionEvent
. -
Removed the
ErrorListener::onKernelException
method. -
Removed the
ErrorListener::onConsoleError
method. -
Renamed the
RequestListener::onKernelRequest
method toRequestListener::handleKernelRequestEvent
. -
Renamed the
RequestListener::onKernelController
method toRequestListener::handleKernelControllerEvent
. -
Renamed the
SubRequestListener::onKernelRequest
method toSubRequestListener::handleKernelRequestEvent
. -
Renamed the
SubRequestListener::onKernelFinishRequest
method toSubRequestListener::handleKernelFinishRequestEvent
. -
Removed the
Sentry\FlushableClientInterface
service alias. -
Removed the
sentry.listener_priorities
configuration 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_exceptions
configuration 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::handleConsoleErrorEvent
listener to-64
. -
Changed the priority of the
ConsoleCommandListener::::handleConsoleCommandEvent
listener to128
. -
Changed the priority of the
MessengerListener::handleWorkerMessageFailedEvent
listener to50
. -
Changed the priority of the
RequestListener::handleKernelRequestEvent
listener to5
. -
Changed the priority of the
RequestListener::handleKernelControllerEvent
listener to10
. -
Changed the priority of the
SubRequestListener::handleKernelRequestEvent
listener to3
. -
Changed the priority of the
SubRequestListener::handleKernelFinishRequestEvent
listener to5
. -
Changed the type of the
sentry.options.before_send
configuration option fromscalar
tostring
. 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_breadcrumb
configuration option fromscalar
tostring
. 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_serializers
configuration option from an array ofscalar
values to an array ofstring
values. 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.integrations
configuration option from an array ofscalar
values to an array ofstring
values. 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
ClientBuilderConfigurator
class. -
Removed the
SentryBundle::getSdkVersion()
method. -
Removed the
SentryBundle::getCurrentHub()
method, useSentrySdk::getCurrentHub()
instead. -
Removed the
Sentry\ClientBuilderInterface
andSentry\Options
services. -
Refactorized the
ErrorTypesParser
class and made it@internal
. -
Removed the
sentry.monolog
configuration 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 has been archived by the owner on Dec 22, 2023. It is now read-only.