molten安装测试

扫码查看
5.4
git clone https://github.com/chuan-yun/Molten.git
cd Molten
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --enable-zipkin-header=yes
make && make install

7.1
make clean
/usr/local/php/bin/phpize
./configure --prefix=/usr/local/php7 --with-php-config=/usr/local/php7/bin/php-config --enable-zipkin-header=yes
make && make install
#要不显示文件头找不到

php.ini
[molten]
extension=molten.so
molten.enable=1
molten.service_name="local"
molten.tracing_cli=1
molten.open_report=1
molten.sampling_type=2
molten.sampling_rate=1
molten.notify_uri="http://127.0.0.1:9411/zipkin/"
molten.sink_http_uri="http://127.0.0.1:9411/api/v1/spans"
molten.sink_type=4
molten.sink_log_path="/tmp/molten/logs/"

example
cd example
./run.sh

11-19 20:19
查看更多