C.2 Open Telemetry System Import

If an OpenTelemetry system is importing LogObject LogRecords, the collector will need to pull information from the TraceContext field. This structure contains the TraceId and SpanId, it might also contain ParentSpanId (if one was provided). The SpanId field is used to group LogRecords together. If the SpanId field is null, then for each unique entry in the GroupingId field, the import tool shall generate a unique SpanId.

TraceId are always random, they are a generated GUID, so the FLAG_RANDOM Trace flag shall always be set.