TracingSink.recordSpan

void recordSpan(ulong traceId, ulong spanId, ulong parentSpanId, scope const(char)[] name, long startUs, long durationUs) @safe nothrow;

Record a completed span.

Parameters

traceIdUnique trace identifier.
spanIdUnique span identifier within the trace.
parentSpanIdParent span identifier (0 for root spans).
nameOperation name (e.g., "handleRequest").
startUsSpan start time in microseconds since epoch.
durationUsSpan duration in microseconds.