Home >Backend Development >PHP7 >How to access jaeger in php7?

How to access jaeger in php7?

coldplay.xixi
coldplay.xixiforward
2020-06-19 17:24:573134browse

How to access jaeger in php7?

Download client package
https://packagist.org/package...
Error report

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

The socket extension is not enabled, change php.ini Open

extension=php_sockets.dll

Recommended tutorial: "php tutorial"

The above is the detailed content of How to access jaeger in php7?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete