Maps a Datadog trace span — the Agent's format (trace_id, span_id, parent_id, start,
duration, meta, metrics) or the trace-by-id API format (traceID, traceIDFull, spanID,
parentID, startTime, endTime, duration) — to a SPEC Span.
The full trace id comes from traceIDFull / trace_id_hex / meta otel.trace_id, else the
decimal low 64 bits plus meta _dd.p.tid. name = Datadog resource (the OTel span name for
OTLP spans), kind = meta span.kind, status = error flag (message from error.message,
error.msg or otel.status_description) or meta otel.status_code. Events come from meta
events and span_events, links from meta _dd.span_links and span_links. Attributes are
the remaining meta (strings) and metrics (numbers), plus operation_name, resource_name and
span.type.
Maps a Datadog trace span — the Agent's format (
trace_id,span_id,parent_id,start,duration,meta,metrics) or the trace-by-id API format (traceID,traceIDFull,spanID,parentID,startTime,endTime,duration) — to a SPEC Span.The full trace id comes from
traceIDFull/trace_id_hex/ metaotel.trace_id, else the decimal low 64 bits plus meta_dd.p.tid.name= Datadogresource(the OTel span name for OTLP spans),kind= metaspan.kind, status =errorflag (message fromerror.message,error.msgorotel.status_description) or metaotel.status_code. Events come from metaeventsandspan_events, links from meta_dd.span_linksandspan_links. Attributes are the remaining meta (strings) and metrics (numbers), plusoperation_name,resource_nameandspan.type.