public function startSpan(array $spanOptions)
    {
        if (!array_key_exists('name', $spanOptions)) {
            $spanOptions['name'] = $this->generateSpanName();
        }
        $spanOptions['eventHandler'] = $this;
        return new Span($spanOptions);
    }
public function startSpan(array $spanOptions)
    {
        if (!array_key_exists('name', $spanOptions)) {
            $spanOptions['name'] = $this->generateSpanName();
        }
        $spanOptions['eventHandler'] = $this;
        return new Span($spanOptions);
    }
public function startSpan ( array $ spanOptions ) { if ( ! array_key_exists ( 'name' , $ spanOptions ) ) { $ spanOptions [ 'name' ] = $ this -> generateSpanName ( ) ; } $ spanOptions [ 'eventHandler' ] = $ this ; return new Span ( $ spanOptions ) ; }
Start a new Span. The start time is already set to the current time.

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