下載client套件
https://packagist.org/package...
錯誤
Fatal error: Uncaught Error: Call to undefined function Jaeger\socket_create() in /root/jaeger/vendor/jukylin/jaeger-php/src/Jaeger/UdpClient.php:23 Stack trace: #0 /root/jaeger/vendor/jukylin/jaeger-php/src/Jaeger/Transport/TransportUdp.php(136): Jaeger\UdpClient->__construct('192.168.0.8:577...') #1 /root/jaeger/vendor/jukylin/jaeger-php/src/Jaeger/Reporter/RemoteReporter.php(25): Jaeger\Transport\TransportUdp->flush() #2 /root/jaeger/vendor/jukylin/jaeger-php/src/Jaeger/Config.php(156): Jaeger\Reporter\RemoteReporter->close() #3 /root/jaeger/index.php(42): Jaeger\Config->flush() #4 {main} thrown in /root/jaeger/vendor/jukylin/jaeger-php/src/Jaeger/UdpClient.php on line 23
沒有開socket擴展,改php.ini開啟
extension=php_sockets.dll
推薦教學:《php教學》
以上是php7如何接入jaeger?的詳細內容。更多資訊請關注PHP中文網其他相關文章!