[!WARNING] Datadog OpenTracing for C++ is deprecated. Please use dd-trace-cpp.
Usage docs are on the main Datadog website:
For some quick-start examples, see the examples folder.
For detailed information about this library's configuration, see configuration.md.
Before considering contributions to the project, please take a moment to read our brief contribution guidelines.
Building this project requires the following tools installed:
build-essential
, xcode)cmake
>= 3.1Additional libraries are installed via a script.
git clone https://github.com/DataDog/dd-opentracing-cpp
sudo
)
cd dd-opentracing-cpp
sudo scripts/install_dependencies.sh
cmake
mkdir .build
cd .build
cmake ..
make
cmake -DBUILD_TESTING=ON ..
make
ctest --output-on-failure
/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.
You can enable code coverage instrumentation in the builds of the library and its unit tests by adding the -DBUILD_COVERAGE=ON
flag to cmake. See scripts/run_coverage.sh.
NOTE: This is currently Early Access, and issues should be reported only via GitHub Issues. Installation steps are likely to change based on user feedback and becoming available via Vcpkg.
Building this project requires the following tools installed:
The commands below should be executed in an x64 Native Tools Command Prompt
shell.
cd %HOMEPATH%
git clone https://github.com/DataDog/dd-opentracing-cpp
cmake
cd dd-opentracing-cpp
mkdir .build
cd .build
cmake -DCMAKE_TOOLCHAIN_FILE=%HOMEPATH%\vcpkg\scripts\buildsystems\vcpkg.cmake ..
cmake --build . -- -p:Configuration=RelWithDebInfo
Take care to update the Configuration
value (e.g. to Debug
) if you change
the build mode in your IDE. See this related issue.
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.
Run this command to run the integration tests directly.
test/integration/run_integration_tests_local.sh