parentOf function
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);