A primitive illustration for distributed tracing in C++
The illustration draws inspiration from Yuri Shkuro's opentracing-tutorial here.
This repository is derived from Jaeger where the example app in the examples folder has been modified for a hello-world illustraion.
jaeger-client-cpp is built using CMake. It will automatically download needed dependencies using Hunter.
To build:
mkdir build
cd build
cmake ..
make
Run the all-in-one jaeger environment in another terminal with:
docker run \
--rm \
-p 6831:6831/udp \
-p 6832:6832/udp \
-p 16686:16686 \
jaegertracing/all-in-one:1.7 \
--log-level=debug
Then, the example program (along with the
hello-to string which is Varsha
here) can be run with:
./app ../examples/config.yml Varsha
The traces sent to the Jaeger backend can be accessed and browsed at http://localhost:16686/search