# RIC tracing helper library The library includes a function for creating a tracer instance. ToDo: tracer configuration options ## Usage Create a global tracer ```c #include #include opentracing::Tracer::InitGlobal(tracelibcpp::createTracer("my-service-name")); ``` Span context propagation between different software components in RIC is using a TextMap carrier and JSON format serialization. The [opentracing C++](https://github.com/opentracing/opentracing-cpp) Readme gives examples how span context **inject** and **extract** with textmap can be done. Serialization to JSON can be done with any JSON library. ## Requires cmake gcc/c++ ## Build mkdir build cd build cmake .. make ## Unit testing To run unit tests the project needs to be configured with testing option cmake -DWITH_TESTING=ON .. make check Or with output CTEST_OUTPUT_ON_FAILURE=1 make check ## Coverage Unit testing generates also coverage data. To get that in html format run commands, assuming you are building in `build` dir under the tracelibcpp ```shell lcov -c --no-external --base-directory $(dirname $PWD) --directory . --output-file cov.info genhtml cov.info ``` ## License See [LICENSES.txt](LICENSES.txt) file.