spanFromContext function

Span spanFromContext(
  1. Context context
)

Implementation

Span spanFromContext(Context context) {
  return context.getValue(_spanKey) ?? NonRecordingSpan(SpanContext.invalid());
}