diff --git a/src/sentry/src/ConfigProvider.php b/src/sentry/src/ConfigProvider.php index ec1a23caf..e101e53cb 100644 --- a/src/sentry/src/ConfigProvider.php +++ b/src/sentry/src/ConfigProvider.php @@ -27,7 +27,7 @@ public function __invoke(): array Aspect\GuzzleHttpClientAspect::class, Aspect\LoggerAspect::class, Aspect\RedisAspect::class, - Aspect\SingletonAspect::class, + // Aspect\SingletonAspect::class, Metrics\Aspect\CounterAspect::class, Metrics\Aspect\HistogramAspect::class, Tracing\Aspect\AmqpProducerAspect::class, diff --git a/src/sentry/src/Tracing/Listener/EventHandleListener.php b/src/sentry/src/Tracing/Listener/EventHandleListener.php index a8042e226..978273b16 100644 --- a/src/sentry/src/Tracing/Listener/EventHandleListener.php +++ b/src/sentry/src/Tracing/Listener/EventHandleListener.php @@ -337,9 +337,6 @@ protected function handleRequestReceived(HttpEvent\RequestReceived|RpcEvent\Requ // Finish transaction $transaction->finish(); - - // Flush events - Integration::flushEvents(); }); } @@ -538,9 +535,6 @@ protected function handleCrontabTaskStarting(CrontabEvent\BeforeExecute $event): // Finish transaction $transaction->finish(); - - // Flush events - Integration::flushEvents(); }); } @@ -607,9 +601,6 @@ protected function handleAmqpMessageProcessing(AmqpEvent\BeforeConsume $event): // Finish transaction $transaction->finish(); - - // Flush events - Integration::flushEvents(); }); } @@ -675,9 +666,6 @@ protected function handleKafkaMessageProcessing(KafkaEvent\BeforeConsume $event) // Finish transaction $transaction->finish(); - - // Flush events - Integration::flushEvents(); }); } @@ -725,9 +713,6 @@ protected function handleAsyncQueueJobProcessing(AsyncQueueEvent\BeforeHandle $e // Finish transaction $transaction->finish(); - - // Flush events - Integration::flushEvents(); }); }