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).
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'sparentSpanIdwhen ≥ 0, elserefs[0]("<parentSegmentId>-<parentSpanId>"); further refs become links.kind: Entry → server, Exit → client, Local → internal. Times ms → µs. StatuserrorwhenisError. Attributes = tags plussw.component,sw.layer,sw.peer,sw.service_instance(when set). Span logs become events (name = theeventdata value, elselog).