chuan-yun / Molten

php probe for zipkin and opentracing
Apache License 2.0
792 stars 160 forks source link

CLI模式可以正常上报数据,SAPI模式(php-fpm)下上报数据出错,错误信息如下图 #69

Open shaogx opened 6 years ago

shaogx commented 6 years ago

tmp2b549ff6

shaogx commented 6 years ago

Please give me some advices. Thanks!

gongjiapeng commented 6 years ago

配置信息贴出来,用的哪个版本,上报模式是http 还是kafka

shaogx commented 6 years ago

我直接sh complex.sh 启动服务的,没有修改配置

gongjiapeng commented 6 years ago

在phpini里面把对应的配置项加上

shaogx commented 6 years ago

1518063879866

gongjiapeng commented 6 years ago

把sink_http_url 配置成zipkin的接口地址,sink_type改成http格式

shaogx commented 6 years ago

PHP 7.0.25

根据文档设置成这样,是不是哪里不对?请指教

sink_type = 4 sink_http_uri = http://192.168.88.10:9411/api/v1/spans

gongjiapeng commented 6 years ago

你是http的数据上报不上去?看下服务器的libcurl扩展有没有装

shaogx commented 6 years ago

curl 7.38.0-4 amd64 libcurl3:amd64 7.38.0-4 amd64 libcurl3-gnutls:amd64 7.26.0-1+wheezy8 amd64 libcurl4-openssl-dev:amd64 7.38.0-4 amd64

silkcutKs commented 6 years ago

@shaogx 先按照这里的排查一下 https://github.com/chuan-yun/Molten/wiki/Q&A, 看你的trace 信息好像是zipkin的server没有起来

RobertWang commented 6 years ago

@shaogx 你的还有http request呢,安装完之后,日志有输出,但改成http模式就是没有请求发送,而且扩展也没有异常输出....奇了个怪的

php -v

PHP 5.6.37 (cli) (built: Jul 21 2018 10:14:32) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

php -m [PHP Modules] Core ctype curl date dom ereg fileinfo filter ftp gd hash iconv json libxml mbstring mcrypt memcache memcached mhash molten mysql mysqli mysqlnd openssl pcre PDO pdo_mysql pdo_sqlite Phar posix readline redis Reflection session SimpleXML SPL sqlite3 standard tokenizer xml xmlreader xmlwriter zlib

[Zend Modules]

dpkg -l | grep curl

ii curl 7.52.1-5+deb9u6 amd64 command line tool for transferring data with URL syntax ii libcurl3:amd64 7.52.1-5+deb9u6 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour)

有哪位牛人有这方面的经历?

geyang0101 commented 5 years ago

@shaogx 你的还有http request呢,安装完之后,日志有输出,但改成http模式就是没有请求发送,而且扩展也没有异常输出....奇了个怪的

php -v

PHP 5.6.37 (cli) (built: Jul 21 2018 10:14:32) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

php -m [PHP Modules] Core ctype curl date dom ereg fileinfo filter ftp gd hash iconv json libxml mbstring mcrypt memcache memcached mhash molten mysql mysqli mysqlnd openssl pcre PDO pdo_mysql pdo_sqlite Phar posix readline redis Reflection session SimpleXML SPL sqlite3 standard tokenizer xml xmlreader xmlwriter zlib

[Zend Modules]

dpkg -l | grep curl

ii curl 7.52.1-5+deb9u6 amd64 command line tool for transferring data with URL syntax ii libcurl3:amd64 7.52.1-5+deb9u6 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour)

有哪位牛人有这方面的经历?

@ RobertWang 解决了吗,我也遇到了同样的问题?

shaogx commented 5 years ago

@RobertWang @geyang0101 我现在换了别的工具了,目前能满足需要~

longxibendi commented 5 years ago

@RobertWang @geyang0101 我现在换了别的工具了,目前能满足需要~

换成什么了?

longxibendi commented 5 years ago

@shaogx 换成什么了?