当前位置 : 主页 > 网络编程 > PHP >

php7如何接入jaeger?

来源:互联网 收集:自由互联 发布时间:2023-08-02
下载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:23Stack trace:#0 /root/jaeger/vendor/j

php7如何接入jaeger?

下载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教程》

【文章原创作者:东台网页制作 http://www.1234xp.com/dongtai.html 欢迎留下您的宝贵建议】

上一篇:PHP7.0中的API文档生成工具有哪些?
下一篇:没有了
网友评论