spanContext property

SpanContext? get spanContext

Gets the current span from the context.

Returns null if no span is set in the context.

Implementation

SpanContext? get spanContext => get<SpanContext?>(_spanContextKey);