src/Tracer.php
protected function addTraceSpan($unsetParentId = true)
    {
        $span = new Span(
            TracerInfo::getTraceSpanId(),
            $this->name,
            new AnnotationBlock(
                $this->endpoint,
                $this->startTimestamp,
                zipkin_timestamp(),
                AnnotationBlock::SERVER
            )
        );
        if ($unsetParentId) {
            $span->unsetParentId();
        }
        $this->addSpan($span);
    }
protected function addTraceSpan($unsetParentId = true)
    {
        $span = new Span(
            TracerInfo::getTraceSpanId(),
            $this->name,
            new AnnotationBlock(
                $this->endpoint,
                $this->startTimestamp,
                zipkin_timestamp(),
                AnnotationBlock::SERVER
            )
        );
        if ($unsetParentId) {
            $span->unsetParentId();
        }
        $this->addSpan($span);
    }
protected function addTraceSpan ( $ unsetParentId = true ) { $ span = new Span ( TracerInfo :: getTraceSpanId ( ) , $ this -> name , new AnnotationBlock ( $ this -> endpoint , $ this -> startTimestamp , zipkin_timestamp ( ) , AnnotationBlock :: SERVER ) ) ; if ( $ unsetParentId ) { $ span -> unsetParentId ( ) ; } $ this -> addSpan ( $ span ) ; }
Adds main span to Spans

@param $unsetParentId bool are you frontend?
Adds main span to Spans