Skip to content

Releases: DataDog/dd-trace-php

0.68.0

22 Dec 18:26
8f52f31
Compare
Choose a tag to compare

Note: the internal structure of the newly released dd-library-php-x86_64-linux-*.tar.gz archive is intended for internal use and might vary in the future.

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

02 Nov 09:56
2b73ca0
Compare
Choose a tag to compare

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

11 Oct 14:44
4078a30
Compare
Choose a tag to compare

⚠️ 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 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)

0.65.1

21 Sep 16:35
d440c99
Compare
Choose a tag to compare

Fixed

  • Prevent flushing traces of requests without actual PHP code #1327

0.65.0

20 Sep 16:05
7f7dda4
Compare
Choose a tag to compare

WARNING: Resource names for “Lumen” applications will change by default to GET /actual/uri/path from the previous format GET action_name or GET App\Controller@action_method. You might need to adjust your monitors and filters for the change. In order to go back to the previous behavior, instead, you can temporarily set DD_TRACE_URL_AS_RESOURCE_NAMES_ENABLED=false

Added

  • Add functions ZAI support for PHP 5 and 7 #1300
  • Add properties and exceptions ZAI implementations for PHP 5 #1306
  • Enhance exception reporting on Laravel 5+ #1322

Changed

  • Remove src/dd-doctor.php #1316
  • Honor DD_TRACE_URL_AS_RESOURCE_NAMES_ENABLED in Lumen resource naming #1318

Fixed

  • Fix CLI processes emitting empty root spans when CLI tracing is not enabled #1320

0.64.1

08 Sep 13:54
dc1cfa2
Compare
Choose a tag to compare

WARNING: Users doing manual instrumentation using the GlobalTracer::get()->startActiveSpan() api should update to this version from 0.63.0 and 0.64.0.

Fixed

  • Fix span start times of userland spans (#1312)

0.64.0

03 Sep 13:51
fc8bda3
Compare
Choose a tag to compare

WARNING: this version presents a known bug and you should update to 0.64.1+

WARNING: With this release the file _generated.php is not used anymore and files _generated_api.php and _generated_internal.php are generated instead. This only impacts users having a very custom installation procedure that requires custom builds and manual copy of files.

Added

  • Bring ZAI config, internal spans, and improved exception handling to PHP 7 #1293

Fixed

  • Disable flaky ext/ftp tests on PHP < 8.1 #1296
  • Compatibility with PHP 7.4+ preloading #1298 (thank you @olsavmic for the investigation and reproduction case)
  • Check for php8 binary in package/post-install.sh script #1301 (thank you for the contribution @daiwai)
  • Support userland spans with custom root spans created internally #1303
  • Fix memory leak of already defined global tags #1304

0.63.0

18 Aug 16:02
e296a8f
Compare
Choose a tag to compare

WARNING: this version presents a known bug and you should update to 0.64.1+

Added

  • ZAI config (#1260)
  • Use exceptions ZAI for PHP 7 as well (#1283)

Fixed

  • Fix arginfo of error&exception handler (#1291)

0.62.1

28 Jul 15:02
2c47ee8
Compare
Choose a tag to compare

Fixed

  • Add linux/securebits.h to CentOS docker container, to have it present in linux build artifacts #1286
  • Handle an additional case of capabilities being dropped within our background sender #1287

0.62.0

21 Jul 14:20
ad139d7
Compare
Choose a tag to compare

Added

  • ZAI env #1250
  • Add ZAI component for reading headers #1256
  • (PHP 8) Add proper exception and error reporting #1272
  • (PHP 8) Register SpanData->exception property and store exception info there instead of internally #1281

Changed

  • Refactor internal span objects to be allocated together with their internal data #1254
  • Enforce metrics to be floats in internal serializer #1258
  • Allow for global debug mode, add zai testing to Makefile and more minor testing improvements #1265
  • Move DDTrace\Format to src/api #1271
  • Moving spans from userland to extension #1262

Fixed

  • Fix msgpack serialization of empty arrays #1259
  • Set SECBIT_NO_SETUID_FIXUP to prevent crashes after setuid() calls #1276
  • Apply original curl headers when curl_setopt_array() fails #1279
  • Fix owner of files included in the distributed .tar.gz archive #1280
  • Fix tests: Pin Symfony 4 tests to laminas/laminas-code < 4.4 #1266