Skip to content

jquinn47/opentracing-cpp

 
 

Repository files navigation

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

stack of libraries

Compile and install

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

Tests

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.

API overview for those adding instrumentation

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.

About

OpenTracing API for C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.7%
  • CMake 2.4%
  • C 0.9%