haproxy opentracing 安装构建说明
说明: 使用了centos 8 版本
依赖
- libev
yum install -y libev-devel
- opentracing
wget https://github.com/opentracing/opentracing-cpp/archive/v1.5.0.tar.gz
tar xf v1.5.0.tar.gz
cd opentracing-cpp-1.5.0
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt ..
make
sudo make install
- opentracing-c-wrapper
git clone https://github.com/haproxytech/opentracing-c-wrapper.git
cd opentracing-c-wrapper
./scripts/bootstrap
./configure --prefix=/opt --with-opentracing=/opt
make
sudo make install
- jaegertracing_plugin (可选,如果需要jaeger)
可选的方式,通过直接下载构建好的,或者自己编译(可以使用新版本特性包括bug修复)
wget https://github.com/jaegertracing/jaeger-client-cpp/releases/download/v0.4.2/libjaegertracing_plugin.linux_amd64.so
构建
- clone 代码
git clone https://github.com/haproxytech/spoa-opentracing.git
- 构建
cd spoa-opentracing
./scripts/bootstrap
./configure --with-opentracing=/opt/
make
make install
- 依赖查看
使用ldd 工具