spanContext property

  1. @Deprecated('This method will be removed in 0.19.0. Use [spanContextFromContext] ' 'instead.')
SpanContext get spanContext

Get the SpanContext from this Context, or an invalid SpanContext if no such SpanContext exists.

Implementation

@Deprecated(
    'This method will be removed in 0.19.0. Use [spanContextFromContext] '
    'instead.')
SpanContext get spanContext => spanContextFromContext(this);