[HttpClient] fix HttpClientDataCollector
This commit is contained in:
parent
2a91f28ed4
commit
f51adc53f8
@ -135,6 +135,7 @@ final class HttpClientDataCollector extends DataCollector
|
|||||||
|
|
||||||
$debugInfo = array_diff_key($info, $baseInfo);
|
$debugInfo = array_diff_key($info, $baseInfo);
|
||||||
$info = array_diff_key($info, $debugInfo) + ['debug_info' => $debugInfo];
|
$info = array_diff_key($info, $debugInfo) + ['debug_info' => $debugInfo];
|
||||||
|
unset($traces[$i]['info']); // break PHP reference used by TraceableHttpClient
|
||||||
$traces[$i]['info'] = $this->cloneVar($info);
|
$traces[$i]['info'] = $this->cloneVar($info);
|
||||||
$traces[$i]['options'] = $this->cloneVar($trace['options']);
|
$traces[$i]['options'] = $this->cloneVar($trace['options']);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user