src/Agent.php
private function prepareTransaction()
    {
        $this->transaction->setSpanCount([
            'started' => count($this->spans)
        ]);

        if (empty($this->transaction->getContext()) || empty($this->spans)) {
            $this->transaction->setSampled(false);
        }
    }
private function prepareTransaction()
    {
        $this->transaction->setSpanCount([
            'started' => count($this->spans)
        ]);

        if (empty($this->transaction->getContext()) || empty($this->spans)) {
            $this->transaction->setSampled(false);
        }
    }
private function prepareTransaction ( ) { $ this -> transaction -> setSpanCount ( [ 'started' => count ( $ this -> spans ) ] ) ; if ( empty ( $ this -> transaction -> getContext ( ) ) || empty ( $ this -> spans ) ) { $ this -> transaction -> setSampled ( false ) ; } }
Prepare transaction for sending to APM.
Prepare transaction for sending to APM .