Skip to content

Commit 89117db

Browse files
authored
Fix span status for 4XX responses (#290)
1 parent 15427f3 commit 89117db

File tree

1 file changed

+1
-1
lines changed
  • src/Instrumentation/Laravel/src/Hooks/Illuminate/Contracts/Http

1 file changed

+1
-1
lines changed

src/Instrumentation/Laravel/src/Hooks/Illuminate/Contracts/Http/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function hookHandle(): bool
9191
}
9292

9393
if ($response) {
94-
if ($response->getStatusCode() >= 400) {
94+
if ($response->getStatusCode() >= 500) {
9595
$span->setStatus(StatusCode::STATUS_ERROR);
9696
}
9797
$span->setAttribute(TraceAttributes::HTTP_RESPONSE_STATUS_CODE, $response->getStatusCode());

0 commit comments

Comments
 (0)