span property

  1. @Deprecated('This method will be removed in 0.19.0. Use [spanFromContext] instead.')
Span get span

Get the Span attached to this Context, or a NonRecordingSpan if no such Span exists.

Implementation

@Deprecated(
    'This method will be removed in 0.19.0. Use [spanFromContext] instead.')
Span get span => spanFromContext(this);