https://github.com/datadog/dd-trace-php
Datadog PHP Clients
https://github.com/datadog/dd-trace-php
apm appsec asm datadog open-telemetry opentracing php profiling tracing
Last synced: 13 days ago
JSON representation
Datadog PHP Clients
- Host: GitHub
- URL: https://github.com/datadog/dd-trace-php
- Owner: DataDog
- License: other
- Created: 2018-02-02T14:21:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-09T23:35:58.000Z (13 days ago)
- Last Synced: 2025-04-10T00:04:24.446Z (13 days ago)
- Topics: apm, appsec, asm, datadog, open-telemetry, opentracing, php, profiling, tracing
- Language: PHP
- Homepage: https://docs.datadoghq.com/tracing/setup/php
- Size: 175 MB
- Stars: 520
- Watchers: 120
- Forks: 163
- Open Issues: 125
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# DD Trace PHP
[](https://circleci.com/gh/DataDog/dd-trace-php/tree/master)
[](https://codecov.io/gh/DataDog/dd-trace-php)
[](http://opentracing.io)
[](https://opentelemetry.io)
[](https://php.net/)
[](LICENSE)
[](https://packagist.org/packages/datadog/dd-trace)
[](https://packagist.org/packages/datadog/dd-trace)## Getting Started
The Datadog PHP Tracer (**ddtrace**) brings [APM and distributed tracing](https://docs.datadoghq.com/tracing/) to PHP.
### Installing the extension
Datadog’s PHP Tracing Library supports many of the most common PHP versions, PHP web frameworks, datastores, libraries, and more. Prior to installation, please check our latest [compatibility requirements](https://docs.datadoghq.com/tracing/setup_overview/compatibility_requirements/php/).
Visit the [PHP tracer documentation](https://docs.datadoghq.com/tracing/languages/php/) for complete installation instructions.
#### Installation from PECL (datadog_trace) or from source
Compilation of the tracer and the profiler requires cargo to be installed. Ensure that cargo is minimum version 1.78.0, otherwise follow the [official instructions for installing cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html).
### Advanced configuration
For more information about configuring and instrumenting **ddtrace**, view the [configuration documentation](https://docs.datadoghq.com/tracing/setup/php/#configuration).
### OpenTracing
The **ddtrace** package provides an [OpenTracing-compatible tracer](https://docs.datadoghq.com/tracing/custom_instrumentation/php/?tab=tracingfunctioncalls#opentracing).
## Contributing
Before contributing to this open source project, read our [CONTRIBUTING.md](CONTRIBUTING.md).
## Security Vulnerabilities
If you have found a security issue, please contact the security team directly at [[email protected]](mailto:[email protected]).