diff --git a/composer.json b/composer.json index 592bbd4c..d24769f4 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "require": { "php": "^7.2 | ^8.0", "illuminate/support": "^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0 | ^12.0", - "sentry/sentry": "^4.18.0", + "sentry/sentry": "^4.19.0", "symfony/psr-http-message-bridge": "^1.0 | ^2.0 | ^6.0 | ^7.0", "nyholm/psr7": "^1.0" }, diff --git a/src/Sentry/Laravel/Integration.php b/src/Sentry/Laravel/Integration.php index cae1cc2d..6b3dde65 100644 --- a/src/Sentry/Laravel/Integration.php +++ b/src/Sentry/Laravel/Integration.php @@ -9,6 +9,7 @@ use Sentry\ExceptionMechanism; use Sentry\Laravel\Integration\ModelViolations as ModelViolationReports; use Sentry\Logs\Logs; +use Sentry\Metrics\TraceMetrics; use Sentry\SentrySdk; use Sentry\Tracing\TransactionSource; use Throwable; @@ -123,6 +124,7 @@ public static function flushEvents(): void $client->flush(); Logs::getInstance()->flush(); + TraceMetrics::getInstance()->flush(); } }