{"id":19054475,"url":"https://github.com/datadog/dd-opentracing-cpp","last_synced_at":"2025-04-24T03:21:23.570Z","repository":{"id":33869436,"uuid":"128264903","full_name":"DataDog/dd-opentracing-cpp","owner":"DataDog","description":"Datadog Opentracing C++ Client","archived":false,"fork":false,"pushed_at":"2024-05-20T21:50:50.000Z","size":2806,"stargazers_count":39,"open_issues_count":31,"forks_count":41,"subscribers_count":611,"default_branch":"master","last_synced_at":"2025-04-18T12:17:06.809Z","etag":null,"topics":["apm","datadog","opentracing","tracing"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DataDog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-05T21:12:56.000Z","updated_at":"2024-11-18T02:38:41.000Z","dependencies_parsed_at":"2024-01-03T02:56:14.687Z","dependency_job_id":"fa37105b-585f-4f34-83e6-ce8d2dbb6a85","html_url":"https://github.com/DataDog/dd-opentracing-cpp","commit_stats":null,"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDog%2Fdd-opentracing-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDog%2Fdd-opentracing-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDog%2Fdd-opentracing-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDog%2Fdd-opentracing-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataDog","download_url":"https://codeload.github.com/DataDog/dd-opentracing-cpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250552782,"owners_count":21449272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apm","datadog","opentracing","tracing"],"created_at":"2024-11-08T23:38:30.999Z","updated_at":"2025-04-24T03:21:23.545Z","avatar_url":"https://github.com/DataDog.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Datadog OpenTracing C++ Client\n\n[![CircleCI](https://circleci.com/gh/DataDog/dd-opentracing-cpp/tree/master.svg?style=svg)](https://app.circleci.com/pipelines/github/DataDog/dd-opentracing-cpp?branch=master)\n\n\u003e [!WARNING]\n\u003e Datadog OpenTracing for C++ is deprecated. Please use [dd-trace-cpp](https://github.com/DataDog/dd-trace-cpp/tree/main).\n\n## Usage\n\nUsage docs are on the main Datadog website:\n\n* [NGINX](https://docs.datadoghq.com/tracing/setup/nginx/)\n* [Envoy](https://docs.datadoghq.com/tracing/setup/envoy/)\n* [Istio](https://docs.datadoghq.com/tracing/setup/istio/)\n* [C++ code](https://docs.datadoghq.com/tracing/setup/cpp/)\n\nFor some quick-start examples, see the [examples](examples/) folder.\n\nFor detailed information about this library's configuration, see [configuration.md][2].\n\n## Contributing\n\nBefore considering contributions to the project, please take a moment to read our brief [contribution guidelines](CONTRIBUTING.md).\n\n## Build and Test (Linux and macOS)\n\n### Dependencies\n\nBuilding this project requires the following tools installed:\n\n- Build tools (e.g. `build-essential`, xcode)\n- `cmake` \u003e= 3.1\n\nAdditional libraries are installed via a script.\n\n### Build Steps\n\n- Clone the repository\n    ```sh\n    git clone https://github.com/DataDog/dd-opentracing-cpp\n    ```\n- Install additional library dependencies (requires `sudo`)\n    ```sh\n    cd dd-opentracing-cpp\n    sudo scripts/install_dependencies.sh\n    ```\n- Generate build files using `cmake`\n    ```sh\n    mkdir .build\n    cd .build\n    cmake ..\n    ```\n- Run the build\n    ```sh\n    make\n    ```\n- (Optional) Run the tests\n    ```sh\n    cmake -DBUILD_TESTING=ON ..\n    make\n    ctest --output-on-failure\n    ```\n- (Optional) Install to `/usr/local`\n    ```sh\n    make install\n    ```\n\nIf you want [sanitizers](https://github.com/google/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.\n\nYou 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](scripts/run_coverage.sh).\n\n### Build (Windows)\n\n**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.\n\n### Dependencies\n\nBuilding this project requires the following tools installed:\n\n- Visual Studio 2019 with \"Desktop development for C++\" installed\n- Vcpkg\n- Git\n\n### Build Steps\n\nThe commands below should be executed in an `x64 Native Tools Command Prompt` shell.\n\n- Clone the repository\n    ```sh\n    cd %HOMEPATH%\n    git clone https://github.com/DataDog/dd-opentracing-cpp\n    ```\n- Generate build files using `cmake`\n    ```bat\n    cd dd-opentracing-cpp\n    mkdir .build\n    cd .build\n    cmake -DCMAKE_TOOLCHAIN_FILE=%HOMEPATH%\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake ..\n    ```\n- Run the build\n    ```bat\n    cmake --build . -- -p:Configuration=RelWithDebInfo\n    ```\n\nTake care to update the `Configuration` value (e.g. to `Debug`) if you change\nthe build mode in your IDE.  See this [related issue][1].\n\n### Integration tests\n\nIntegration tests require additional tools installed:\n\n- [msgpack-cli](https://github.com/jakm/msgpack-cli)\n- [wiremock](https://github.com/tomakehurst/wiremock)\n- `jq`\n\nInstallation details can be extracted from the [Dockerfile](https://github.com/DataDog/docker-library/blob/master/dd-opentracing-cpp/test/0.3.1/Dockerfile#L7-L14) for the container that is usually used when running integration tests.\n\nRun this command to run the integration tests directly.\n\n```sh\ntest/integration/run_integration_tests_local.sh\n```\n\n[1]: https://github.com/DataDog/dd-opentracing-cpp/issues/170\n[2]: doc/configuration.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadog%2Fdd-opentracing-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatadog%2Fdd-opentracing-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadog%2Fdd-opentracing-cpp/lists"}