public function startSpan(array $spanOptions)
    {
        if (!array_key_exists('name', $spanOptions)) {
            $spanOptions['name'] = $this->generateSpanName();
        }
        $spanOptions['eventHandler'] = $this;
        return new Span($spanOptions);
    }