Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Datadog Opentracing C++ Client

License

Notifications You must be signed in to change notification settings

depop-archive/dd-opentracing-cpp

 
 

Repository files navigation

CircleCI

Datadog OpenTracing C++ Client

Usage

Usage docs are on the main Datadog website:

For some quick-start examples, see the examples folder.

Contributing

Before considering contributions to the project, please take a moment to read our brief contribution guidelines.

Build and Test

Dependencies

Building this project requires the following tools installed:

  • Build tools (eg. build-essential, xcode)
  • cmake >= 3.1

Additional libraries are installed via a script.

Build Steps

  • Clone the repository
git clone https://github.com/DataDog/dd-opentracing-cpp
  • Install additional library dependencies (requires sudo)
cd dd-opentracing-cpp
sudo scripts/install_dependencies.sh
  • Generate build files using cmake
mkdir .build
cd .build
cmake ..
  • Run the build
make
  • (Optional) Run the tests
cmake -DBUILD_TESTING=ON ..
make
ctest --output-on-failure
  • (Optional) Install in /usr/local
make install

If you want sanitizers to be enabled, then add either the -DSANITIZE_THREAD=ON -DSANITIZE_UNDEFINED=ON or -DSANITIZE_ADDRESS=ON flags to cmake, running the tests will now also check with the sanitizers.

Integration tests

Integration tests require additional tools installed:

Installation details can be extracted from the Dockerfile for the container that is usually used when running integration tests.

The script below will run the integration tests directly.

test/integration/run_integration_tests_local.sh

About

Datadog Opentracing C++ Client

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 89.3%
  • Shell 6.9%
  • CMake 1.5%
  • Dockerfile 1.4%
  • Other 0.9%