child method

TraceContext child({
  1. Random? random,
})

A child of this context: same trace, a new span.

Implementation

TraceContext child({Random? random}) => TraceContext(
      traceId: traceId,
      spanId: _hex(random ?? _random, 8),
      sampled: sampled,
    );