commit | f165e5750fff603b11c8f221b7c36a9db4e8e86e | [log] [tgz] |
---|---|---|
author | Roni Riska <roni.riska@nokia.com> | Wed Aug 14 10:53:40 2019 +0300 |
committer | Roni Riska <roni.riska@nokia.com> | Wed Aug 14 16:17:36 2019 +0300 |
tree | 497a655732cd580fed65d6be39f9deaf401103b7 | |
parent | 87956295b3a222b6b4f946a27efd633175ae7ed4 [diff] |
First version of the tracing library Supports only noop tracer. Change-Id: I8ccd9ecbeb420b98cefc9950d2ed3f3f59482495 Signed-off-by: Roni Riska <roni.riska@nokia.com>
The library includes a function for creating a tracer instance.
ToDo: tracer configuration options
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.
cmake gcc/c++
mkdir build cd build cmake .. make
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
See LICENSES.txt file.