activeSpan property
Span?
activeSpan
Returns the activer Span. This is a shorthand for
Tracer.scopeManager().active().span()
and null will be returned if
ScopeManager.active()} is null.
Implementation
Span? get activeSpan => scopeManager?.active?.span;