Update HttpClientAspect.php

This commit is contained in:
黄朝晖 2019-12-19 11:49:10 +08:00 committed by GitHub
parent f993455436
commit 277e025f70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;