mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-05 05:07:58 +08:00
Update HttpClientAspect.php
This commit is contained in:
parent
f993455436
commit
277e025f70
@ -94,7 +94,7 @@ class HttpClientAspect implements AroundInterface
|
||||
$proceedingJoinPoint->arguments['keys']['options'] = $options;
|
||||
$result = $proceedingJoinPoint->process();
|
||||
if ($result instanceof ResponseInterface) {
|
||||
$span->setTag($this->spanTagManager->get('http_client', 'http.status_code'), $uri);
|
||||
$span->setTag($this->spanTagManager->get('http_client', 'http.status_code'), $result->getStatusCode());
|
||||
}
|
||||
$span->finish();
|
||||
return $result;
|
||||
|
Loading…
Reference in New Issue
Block a user