Module datadog

Module datadog 

Source
Expand description

Datadog v1.0 APM trace decoder. Decoder for the Datadog v1.0 APM trace wire format (also called the idx/etp format).

The v1.0 trace API (Content-Type: application/msgpack, endpoint v1.0) sends a tracer payload in a custom MessagePack layout rather than protobuf-over-msgpack. Its defining traits:

  • A streaming string table: a string appears once as a literal, then by uint32 index thereafter.
  • Structs are maps keyed by field number (uint32), not by name.
  • Attribute maps are flat arrays with three slots per entry (key, type, value).
  • AnyValue is a uint32 type discriminant followed by the value.

decode_v1_payload decodes one tracer payload into the unified Trace model, producing one Trace per trace chunk. String references are resolved to owned strings during decode.

Enums§

DecodeError
An error encountered while decoding a v1.0 tracer payload.

Functions§

decode_v1_payload
Decodes a single v1.0 tracer payload into unified trace events.