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.