// NewChild creates a new span with the given name as a child of s.
// If s is nil, does nothing and returns nil.
NewChild creates a new span with the given name as a child of s.
If s is nil, does nothing and returns nil.
// NewChild creates a new span with the given name as a child of s . // If s is nil does nothing and returns nil .
func (s *Span) NewChild(name string) *Span {
	if s == nil {
		return nil
	}
	if !s.tracing() {
		return s
	}
	return startNewChild(name, s.trace, s.span.SpanId)
}
func ( s * Span ) NewChild ( name string ) * Span { if s == nil { return nil } if ! s . tracing ( ) { return s } return startNewChild ( name , s . trace , s . span . SpanId ) }
NewChild creates a new span with the given name as a child of s.
If s is nil, does nothing and returns nil.
NewChild creates a new span with the given name as a child of s . If s is nil does nothing and returns nil .