Skip to content

Commit

Permalink
fix: 修改response为错误的检测
Browse files Browse the repository at this point in the history
  • Loading branch information
titrxw committed Oct 13, 2021
1 parent ad5292c commit 7910564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Request/AfterRequestListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function run(...$params) {
$responseCode = $response->getStatusCode();
$span->setTag(HTTP_STATUS_CODE, $responseCode);
$span->log(['finish-request']);
if ($responseCode != 200) {
if ($responseCode > 400) {
$span->setTag(ERROR, $response->getBody()->getContents());
}
$this->finishSpan($span);
Expand Down

0 comments on commit 7910564

Please sign in to comment.