// NewSpan returns a new trace span with the given name.
//
// A new trace and span ID is generated to trace the span.
// Returned span need to be finished by calling Finish or FinishWait.
NewSpan returns a new trace span with the given name.

A new trace and span ID is generated to trace the span.
Returned span need to be finished by calling Finish or FinishWait.
// NewSpan returns a new trace span with the given name . // // A new trace and span ID is generated to trace the span . // Returned span need to be finished by calling Finish or FinishWait .
func (c *Client) NewSpan(name string) *Span {
	if c == nil {
		return nil
	}
	t := &trace{
		traceID:       nextTraceID(),
		client:        c,
		localOptions:  optionTrace,
		globalOptions: optionTrace,
	}
	span := startNewChild(name, t, 0)
	span.span.Kind = spanKindServer
	span.rootSpan = true
	configureSpanFromPolicy(span, c.policy, false)
	return span
}
func ( c * Client ) NewSpan ( name string ) * Span { if c == nil { return nil } t := & trace { traceID : nextTraceID ( ) , client : c , localOptions : optionTrace , globalOptions : optionTrace , } span := startNewChild ( name , t , 0 ) span . span . Kind = spanKindServer span . rootSpan = true configureSpanFromPolicy ( span , c . policy , false ) return span }
NewSpan returns a new trace span with the given name.
NewSpan returns a new trace span with the given name .