First version of the tracing library

Supports only noop tracer.

Change-Id: I8ccd9ecbeb420b98cefc9950d2ed3f3f59482495
Signed-off-by: Roni Riska <roni.riska@nokia.com>
7 files changed
tree: 497a655732cd580fed65d6be39f9deaf401103b7
  1. cmake/
  2. include/
  3. src/
  4. tst/
  5. CMakeLists.txt
  6. LICENSES.txt
  7. README.md
README.md

RIC tracing helper library

The library includes a function for creating a tracer instance.

ToDo: tracer configuration options

Usage

Create a global tracer

    #include <opentracing/tracer.h>
    #include <tracelibcpp/tracelibcpp.hpp>

    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++ 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

License

See LICENSES.txt file.