Releases: DataDog/dd-trace-php
Releases · DataDog/dd-trace-php
0.20.0
0.19.1
0.19.0
Changed
- Span and SpanContext main implementation uses public fields to share data to allow faster serialization and overall Span overhead #398
DDTrace\Encoders\SpanEncoder::encode()
now takes an instance ofDDTrace\Data\Span
instead ofDDTrace\Contracts\Span
#398DDTrace\Processing\TraceAnalyticsProcessor::process()
now takes an instance ofDDTrace\Data\Span
instead ofDDTrace\Contracts\Span
#398- Improve performance of setTag and setResource #398
- Load required PHP files in one go #387
- Load optional PHP files without filesystem check #387
0.18.0
NOTE: THIS IS A BREAKING CHANGE RELEASE
This change should not impact most users.
Added
- MessagePack serialization for traces sent to the Agent with a new function
dd_trace_serialize_msgpack()
#378
Changed
- Request init hook module blacklist now avoids miss matching partial matches #372
- Add 10MB cap to payloads sent to the Agent #388
- Added an
getTracesAsArray()
method toDDTrace/Contracts/Tracer
which returns an array of spans (which are also encoded as an array.) To encode an instance ofDDTrace\Contracts\Span
as an array, useDDTrace/Encoders/SpanEncoder::encode($span)
#378 DDTrace/Transport::send()
now takes an instance ofDDTrace/Contracts/Tracer
instead of anarray
#378DDTrace/Encoder::encodeTraces()
now takes an instance ofDDTrace/Contracts/Tracer
instead of anarray
#378- The default encoder is now
DDTrace/Encoders/MessagePack
. You can still use the JSON encoder by setting the environment variableDD_TRACE_ENCODER=json
. It is generally not recommended to use the JSON encoder as parsing JSON payloads at the Agent level is more CPU & memory intensive.
0.17.0
0.16.1
0.16.0
Changed
- When shutdown hook is executed we disable all tracing to avoid creating unnecessary spans #361
- Inside request init hook we disable all function tracing when we decide not to trace #361
Added
- Disable request_init_hook functionality in presence of blacklisted modules via
ddtrace.internal_blacklisted_modules_list=some_module,some_other_module
#345 & #370 - Integration-level configuration #354
dd_trace_disable_in_request
function which disables all function tracing until request ends #361