Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.38 KB

Jaeger-client-cpp.md

File metadata and controls

61 lines (41 loc) · 1.38 KB

Forked repository: https://github.com/ananyaarun/jaeger-client-cpp

Jaeger client cpp was built and traces were visualised

jaeger-client-cpp

C++ OpenTracing binding for Jaeger

Building

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

Generated files

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

Traces

These were the traces obtained on Jaeger UI

jaeger1

By changing the trace function to take a parameter we can generate and visualise multiple spans

jaeger2