/opentracing-cpp

OpenTracing API for C++

Primary LanguageC++MIT LicenseMIT

OpenTracing API for C++

C++ implementation of the OpenTracing API http://opentracing.io

Join the chat at https://gitter.im/opentracing/opentracing-cpp

Required Reading

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's up to implementors to choose the C++ level they are going to use for their implementations:

stack of libraries

Compile and install

libtoolize # or glibtoolize
./autogen.sh
./configure
sudo make install

To test (requires gtest - see here for OS X, here for ubuntu and here for Red Hat/for Red Hat note also this):

cd test
make
./test

API overview for those adding instrumentation

Everyday consumers of this opentracing package really only need to worry about a couple of key abstractions: the StartSpan function, the Span interface, and binding a Tracer at main()-time.