1 # RIC tracing helper library
3 The library includes a function for creating a tracer instance.
5 ToDo: tracer configuration options
12 #include <opentracing/tracer.h>
13 #include <tracelibcpp/tracelibcpp.hpp>
15 opentracing::Tracer::InitGlobal(tracelibcpp::createTracer("my-service-name"));
17 Span context propagation between different software components in RIC is using a
18 TextMap carrier and JSON format serialization.
19 The [opentracing C++](https://github.com/opentracing/opentracing-cpp) Readme gives examples
20 how span context **inject** and **extract** with textmap can be done.
21 Serialization to JSON can be done with any JSON library.
35 To run unit tests the project needs to be configured with testing option
36 cmake -DWITH_TESTING=ON ..
39 CTEST_OUTPUT_ON_FAILURE=1 make check
42 Unit testing generates also coverage data. To get that in html format run commands, assuming
43 you are building in `build` dir under the tracelibcpp
45 lcov -c --no-external --base-directory $(dirname $PWD) --directory . --output-file cov.info
51 See [LICENSES.txt](LICENSES.txt) file.