parentOf function

({bool sampled, String spanId, String traceId})? parentOf(
  1. TraceContext? ctx
)

View a span context as a traceparent parent.

Implementation

({String traceId, String spanId, bool sampled})? parentOf(TraceContext? ctx) =>
    ctx == null
        ? null
        : (traceId: ctx.traceId, spanId: ctx.spanId, sampled: ctx.sampled);