C++ implementation of the OpenTracing API http://opentracing.io
In order to understand the C++ platform API, one must first be familiar with the OpenTracing project and terminology more generally. This is a C++98 API that is used as a "common denominator". Ît is up to implementors to choose the C++ level they are going to use for their implementations:
The default package is a header-only library. It can be installed as such
mkdir build
cd build
cmake ..
make install
If you would like to include the NoopTracer, a static library is created in addition to the headers.
mkdir build
cd build
cmake -Denable_noop=ON ..
make install
Testing requires the use of gtest
. The gtest
library is added as a submodule to this repository.
To build all of the tests, from the root repository:
git submodule init
git submodule update
mkdir build
cd build
cmake -Denable_tests=ON ..
make
./bin/unittest
If you're using the NoopTracer
, you would want to add -Denable_noop=ON
as well.
Clients of this OpenTracing
only need to understand the key abstractions:
* Installing a Tracer
* Using the Global Tracer
to create Spans
and SpanContexts
* Adding tags, logs, or baggage to Spans
See the detailed usage documentation for details.