withSpan method

Context withSpan(
  1. Span? span
)

Returns a new Context created from this one with the given api.Span set.

Implementation

Context withSpan(api.Span? span) => setValue(spanKey, span);