nextAttempt method

LogDropTraceContext nextAttempt()

Implementation

LogDropTraceContext nextAttempt() {
  if (source == 'caller') return this;
  final spanId = LogDropTraceContextPropagator.randomNonZeroHex(8);
  return LogDropTraceContext(
    traceId: traceId,
    clientSpanId: spanId,
    traceFlags: traceFlags,
    traceparent: '$_version-$traceId-$spanId-$traceFlags$_suffix',
    source: 'continued_attempt',
    version: _version,
    suffix: _suffix,
  );
}