Skip to main content

Module mapper

Module mapper 

Source
Expand description

Maps Datadog trace/spans directly to the generated prost OTLP types (the IR).

The prost ExportTraceServiceRequest is the single OTLP representation: from it the HTTP/protobuf wire format is produced by prost encoding and the HTTP/JSON wire format by the serde serializer in json_serializer. Attributes are built straight into prost KeyValue/AnyValue in one pass — there is no intermediate value type to keep the two encoders in sync because there is only one IR.

Modules§

status_code
OTLP StatusCode enum values. Public because the OTLP metrics exporter (libdd-data-pipeline) reuses these constants.

Functions§

map_traces_to_otlp
Maps Datadog trace chunks and resource info to a prost OTLP ExportTraceServiceRequest, built directly from the native span fields (no hex/decimal round trip — the prost types are the IR).