spanContext property

SpanContext? get spanContext

Get the api.SpanContext from this Context, or null if no such api.SpanContext exists.

Implementation

api.SpanContext? get spanContext => getValue(spanKey)?.spanContext;