public function startSpan(array $spanOptions = [])
    {
        $spanOptions += [
            'traceId' => $this->spanContext()->traceId(),
            'parentSpanId' => $this->spanContext()->spanId(),
            'startTime' => microtime(true)
        ];

        return new Span($spanOptions);
    }
public function startSpan(array $spanOptions = [])
    {
        $spanOptions += [
            'traceId' => $this->spanContext()->traceId(),
            'parentSpanId' => $this->spanContext()->spanId(),
            'startTime' => microtime(true)
        ];

        return new Span($spanOptions);
    }
public function startSpan ( array $ spanOptions = [ ] ) { $ spanOptions += [ 'traceId' => $ this -> spanContext ( ) -> traceId ( ) , 'parentSpanId' => $ this -> spanContext ( ) -> spanId ( ) , 'startTime' => microtime ( true ) ] ; return new Span ( $ spanOptions ) ; }
Create a new Span. The start time is already set to the current time.
The newly created span is not attached to the current context.

@param array $spanOptions [optional] Options for the span. See
<a href="../Span.html#method___construct">OpenCensus\Trace\Span::__construct()</a>
@return Span
Create a new Span . The start time is already set to the current time . The newly created span is not attached to the current context .