Skip to content

rnburn/lightstep-tracer-cpp

 
 

Repository files navigation

lightstep-tracer-cpp

MIT license

The LightStep distributed tracing library for C++.

Installation

$ mkdir .build
$ cd .build
$ cmake ..
$ make
$ sudo make install

Getting started

To initialize the LightStep library in particular, either retain a reference to the LightStep opentracing::Tracer implementation and/or set the global Tracer like so:

#include <lightstep/tracer.h>
using namespace lightstep;

int main() {
  // Initialize the LightStep Tracer; see lightstep::LightStepTracerOptions for
  // tuning, etc.
  LightStepTracerOptions options;
  options.access_token = "YourAccessToken";
  auto tracer = MakeLightStepTracer(options);

  // Optionally set the opentracing global Tracer to the above.
  opentracing::Tracer::InitGlobal(tracer);

  return 0;
}

For instrumentation documentation, see the opentracing-cpp docs.

About

The LightStep distributed tracing library for C++

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 87.1%
  • CMake 7.8%
  • Shell 3.1%
  • Python 2.0%