public function onExit()
    {
        $this->addCommonRequestAttributes($this->headers);

        $this->scope->close();

        $this->exporter->export($this->tracer->spans());
    }
public function onExit()
    {
        $this->addCommonRequestAttributes($this->headers);

        $this->scope->close();

        $this->exporter->export($this->tracer->spans());
    }
public function onExit ( ) { $ this -> addCommonRequestAttributes ( $ this -> headers ) ; $ this -> scope -> close ( ) ; $ this -> exporter -> export ( $ this -> tracer -> spans ( ) ) ; }
The function registered as the shutdown function. Cleans up the trace and
reports using the provided ExporterInterface. Adds additional attributes to
the root span detected from the response.
The function registered as the shutdown function . Cleans up the trace and reports using the provided ExporterInterface . Adds additional attributes to the root span detected from the response .