public function log(array $fields = [], $timestamp = null){
        $log['timestamp'] = $timestamp ? $timestamp : $this->microtimeToInt();
        $log['fields'] = $fields;
        $this->logs[] = $log;
    }
public function log(array $fields = [], $timestamp = null){
        $log['timestamp'] = $timestamp ? $timestamp : $this->microtimeToInt();
        $log['fields'] = $fields;
        $this->logs[] = $log;
    }
public function log ( array $ fields = [ ] , $ timestamp = null ) { $ log [ 'timestamp' ] = $ timestamp ? $ timestamp : $ this -> microtimeToInt ( ) ; $ log [ 'fields' ] = $ fields ; $ this -> logs [ ] = $ log ; }
Adds a log record to the span

@param array $fields
@param int|float|\DateTimeInterface $timestamp
@throws SpanAlreadyFinished if the span is already finished
Adds a log record to the span