diff --git a/src/Instrumentation/Symfony/src/SymfonyInstrumentation.php b/src/Instrumentation/Symfony/src/SymfonyInstrumentation.php index 0c05a9b3..7d511488 100644 --- a/src/Instrumentation/Symfony/src/SymfonyInstrumentation.php +++ b/src/Instrumentation/Symfony/src/SymfonyInstrumentation.php @@ -113,7 +113,7 @@ public static function register(): void return; } - if ($response->getStatusCode() >= Response::HTTP_BAD_REQUEST) { + if ($response->getStatusCode() >= Response::HTTP_INTERNAL_SERVER_ERROR) { $span->setStatus(StatusCode::STATUS_ERROR); } $span->setAttribute(TraceAttributes::HTTP_RESPONSE_STATUS_CODE, $response->getStatusCode());