end method
void
end()
Ends both spans. Ignored if already called.
Ends when the response head arrives, not when the body finishes streaming. The alternative is holding the span open for as long as the caller takes to read, which measures the caller rather than the request.
Both take the same end timestamp, as the iOS Agent's manufactured parent takes its child's.
Implementation
void end() => _spans.end();