http://127.0.0.1:9411/zipkin/, 看不到任何链路信息
rongcheng38 opened this issue · 3 comments
root@rel-admin-pc-185:/usr/local/Molten/example# curl http://127.0.0.1:9411/api/v1/spans
404 Not Foundroot
我也是,遇到这个问题,然后我发现把 molten.sink_type=4 改成1写文件
molten.sink_log_path="/tmp/logs/"
发现执行 php server.php
ls /tmp/logs/
tracing-20190818.log
说明 molten 这个应该是没有问题的 , 感觉是 zipkin 没有成功接收或处理
直接curl可以成功,看来不是 zipkin 的问题,我是php7.0
curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '[{"traceId":"b37884540ffc41c6","name":"php_curl","version":"php-4","id":"b1f19876528720f2","parentId":"1d31aaf145c3add1","timestamp":1566092271896191,"duration":5234,"annotations":[{"value":"cs","timestamp":1566092271896191,"endpoint":{"serviceName":"local","ipv4":"10.0.2.15"}},{"value":"cr","timestamp":1566092271901425,"endpoint":{"serviceName":"local","ipv4":"10.0.2.15"}}],"binaryAnnotations":[{"key":"http.url","value":"http://localhost:8972/","endpoint":{"serviceName":"local","ipv4":"10.0.2.15"}},{"key":"error","value":"Failed connect to localhost:8972; Connection refused","endpoint":{"serviceName":"local","ipv4":"10.0.2.15"}}]},{"traceId":"b37884540ffc41c6","name":"php_curl","version":"php-4","id":"addfa8d2411ea6f3","parentId":"1d31aaf145c3add1","timestamp":1566092271901690,"duration":4988,"annotations":[{"value":"cs","timestamp":1566092271901690,"endpoint":{"serviceName":"local","ipv4":"10.0.2.15"}},{"value":"cr","timestamp":1566092271906678,"endpoint":{"serviceName":"local","ipv4":"10.0.2.15"}}],"binaryAnnotations":[{"key":"http.url","value":"http://localhost:8973/","endpoint":{"serviceName":"local","ipv4":"10.0.2.15"}},{"key":"error","value":"Failed connect to localhost:8973; Connection refused","endpoint":{"serviceName":"local","ipv4":"10.0.2.15"}}]},{"traceId":"b37884540ffc41c6","name":"cli","version":"php-4","id":"1d31aaf145c3add1","timestamp":1566092270898829,"duration":1008133,"annotations":[{"value":"sr","timestamp":1566092270898829,"endpoint":{"serviceName":"local","ipv4":"10.0.2.15"}},{"value":"ss","timestamp":1566092271906962,"endpoint":{"serviceName":"local","ipv4":"10.0.2.15"}}],"binaryAnnotations":[{"key":"path","value":"/usr/local/src/Molten/example/server.php","endpoint":{"serviceName":"local","ipv4":"10.0.2.15"}}]}]' 127.0.0.1:9411/api/v1/spans
未发送http请求给api/v1/spans接口
1)curl-config --version
若 command not found,则是因为未安装libcurl-devel
2) yum install libcurl-devel
phpize
./configure
make clean
make
make install