Home

Awesome

Datadog OpenTracing C++ Client

CircleCI

[!WARNING] Datadog OpenTracing for C++ is deprecated. Please use dd-trace-cpp.

Usage

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.

Contributing

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

Build and Test (Linux and macOS)

Dependencies

Building this project requires the following tools installed:

Additional libraries are installed via a script.

Build Steps

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.

Build (Windows)

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.

Dependencies

Building this project requires the following tools installed:

Build Steps

The commands below should be executed in an x64 Native Tools Command Prompt shell.

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

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