// Finish declares that the span has finished.
//
// If s is nil, Finish does nothing and returns nil.
//
// If the option trace.WithResponse(resp) is passed, then some labels are set
// for s using information in the given *http.Response.  This is useful when the
// span is for an outgoing http request; s will typically have been created by
// NewRemoteChild in this case.
//
// If s is a root span (one created by SpanFromRequest) then s, and all its
// descendant spans that have finished, are uploaded to the Google Stackdriver
// Trace server asynchronously.
Finish declares that the span has finished.

If s is nil, Finish does nothing and returns nil.

If the option trace.WithResponse(resp) is passed, then some labels are set
for s using information in the given *http.Response.  This is useful when the
span is for an outgoing http request; s will typically have been created by
NewRemoteChild in this case.

If s is a root span (one created by SpanFromRequest) then s, and all its
descendant spans that have finished, are uploaded to the Google Stackdriver
Trace server asynchronously.
// Finish declares that the span has finished . // // If s is nil Finish does nothing and returns nil . // // If the option trace . WithResponse ( resp ) is passed then some labels are set // for s using information in the given * http . Response . This is useful when the // span is for an outgoing http request ; s will typically have been created by // NewRemoteChild in this case . // // If s is a root span ( one created by SpanFromRequest ) then s and all its // descendant spans that have finished are uploaded to the Google Stackdriver // Trace server asynchronously .
func (s *Span) Finish(opts ...FinishOption) {
	if s == nil {
		return
	}
	if !s.tracing() {
		return
	}
	s.trace.finish(s, false, opts...)
}
func ( s * Span ) Finish ( opts ... FinishOption ) { if s == nil { return } if ! s . tracing ( ) { return } s . trace . finish ( s , false , opts ... ) }
Finish declares that the span has finished.
Finish declares that the span has finished .