datadog_trace

APM and distributed tracing for PHP


The Datadog PHP Tracer brings APM and distributed tracing to PHP.

License: BSD 3-Clause

Latest releases

Version Release Download
0.68.2 2022-01-06 datadog_trace-0.68.2.tgz
0.68.1 2021-12-30 datadog_trace-0.68.1.tgz
0.68.0 2021-12-22 datadog_trace-0.68.0.tgz
0.67.0 2021-10-29 datadog_trace-0.67.0.tgz
0.66.0 2021-10-11 datadog_trace-0.66.0.tgz
Show all releases

Changelog

Version Message
0.68.2 ### Changed
- Clean up generate-final-artifact.sh #1442

### Fixed
- Replace direct access of meta/metrics zvals by safe array access in most places #1440
- Always separate meta and metrics arrays on access #1441
- Bump profiling to v0.3.0-rc.6 (fixes some linking bugs) #1444
0.68.1 ### Fixed
- Do not diagnostics when ddtrace is disabled #1434
- Fix json symbol address resolving logic #1432
- Disable tracing when PHP is executed during RINIT #1429
- Change Predis integration type to "redis" #1427
0.68.0 ### Added
- Bring priority sampling to internal #1366
- SpanData::$parent property #1369
- Add queue and channel components #1388
- Add log component #1390
- Add arena component #1391
- Add stack sample component #1392
- Add uuid component #1393
- Add time component #1394, #1408
- Add profiler installation #1422
- Zai/json #1378, #1397
- Add Code Coverage #1389

### Changed
- (PHP 8) Migrate ObjectKVStore to WeakMap internally #1362
- Adjust components #1387
- Export only specific symbols #1407
- Sanitize user information from urls #1396
- Split INI setting in installer so they can be added separately when missing #1415
- Use the new targz bundle format with the new PHP installer #1421
- Have both legacy and new installer to fail when json PHP extension is not enabled #1410

### Fixed
- Fix Laravel unnamed route with caching and domain specification #1364
- Fix http.url of internal root span #1360
- Add small framework to stress test our internal API with bogus inputs #1365
- PDOIntegration::parseDSN fails to parse some DSN #1373
- Fix constructor of OpenTracing wrapper when no Datadog tracer is provided #1406 - thanks @OGKevin for the reproduction case
- Fix parsing of urls without schema into host name #1385
0.67.0 ### Added
- (PHP 5) Add zai config, internal spans, and exception handling (#1339)
- (PHP 7, 8) Add mongodb instrumentation (#1345)
- PHP installation script (beta) (#1335)

### Changed
- (PHP 5, 7) Move _dd.origin handling to internal #1347

### Fixed
- (PHP 7, 8) Fix exception handling with opcache cfg optimization enabled (#1344)
- (PHP 7, 8) Fix memory leaks in curl and error handling (#1350)
- Use ObjectKVStore in place of internal registry to store PDO connection parameters (#1355)
0.66.0 ### Breaking changes
* Global tags are now assigned early. This means that users have to make sure to not overwrite `meta`, but only add to it instead, if they don't want to lose global tags. Wrong: `$span->meta = [ 'some' => 'tag' ]`. Correct `$span->meta['some'] = 'tag'`.
* Support for legacy param `DD_TRACE_RESOURCE_URI_MAPPING` has been dropped with the migration to C code, after more than a year of deprecation. Use `DD_TRACE_RESOURCE_URI_FRAGMENT_REGEX`, `DD_TRACE_RESOURCE_URI_MAPPING_INCOMING`, and `DD_TRACE_RESOURCE_URI_MAPPING_OUTGOING ` instead. See [resource mapping](https://docs.datadoghq.com/tracing/setup_overview/setup/php/?tab=containers#map-resource-names-to-normalized-uri) for more details.

### Added

- (PHP 8) Migrate _dd.origin and distributed header sending to internal (#1267)
- (PHP 5) Add headers ZAI implementation (#1308)
- Add support for PHP 8.1 (#1297)

### Changed
- (PHP 7, 8) Internal (root) span initialization (#1329)

### Fixed

- (PHP 5, 7, 8) Remove all lines containing zai_sapi from config.m4 (#1333)
- (PHP 7, 8) Fix unnamed service spans caused by improper handling of `DD_TRACE_ENABLED` (#1332)
Show complete changelog