@grow-codes/apache-skywalking - v0.1.1
    Preparing search index...

    Function nativeSpanToSpan

    • Converts a native span into the SPEC §5 model. Ids are kept verbatim (DECISIONS: native trace ids are not hex): spanId = "<segmentId>-<spanId>"; the parent is the same segment's parentSpanId when ≥ 0, else refs[0] ("<parentSegmentId>-<parentSpanId>"); further refs become links. kind: Entry → server, Exit → client, Local → internal. Times ms → µs. Status error when isError. Attributes = tags plus sw.component, sw.layer, sw.peer, sw.service_instance (when set). Span logs become events (name = the event data value, else log).

      Parameters

      Returns Span