@grow-codes/datadog-apm - v0.1.1
    Preparing search index...

    Function datadogTraceSpanToSpan

    • 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.

      Parameters

      Returns Span