C++ OpenTracing binding for Jaeger
Please see CONTRIBUTING.md.
jaeger-client-cpp is built using CMake. It will automatically download needed dependencies using Hunter.
To build:
mkdir build
cd build
cmake ..
make
After building, the example program can be run with:
./app ../examples/config.yml
To run tests:
make test
To install the library:
make install
This project uses Apache Thrift for wire-format protocol support code generation. It currently requires Thrift 0.11.0.
The code can be re-generated with
$ git submodule update --init
$ find idl/thrift/ -type f -name \*.thrift -exec thrift -gen cpp -out src/jaegertracing/thrift-gen {} \;
$ git apply scripts/thrift-gen.patch
The default agent host and port is 127.0.0.1:6831
, you can use a different host/port by updating your reporter configuration.
YAML configuration:
repoter:
localAgentHostPort: localhost:6831
NOTE: It is not recommended to use a remote host for UDP connections.
The default sampling collector URL is http://127.0.0.1:5778
, you can use a different URL by updating the sampler configuration.
sampler:
samplingServerURL: http://jaeger-collector.local:5778