Trace/src/Span.php
public function addTimeEvent(TimeEvent $event)
    {
        if (!$this->timeEvents) {
            $this->timeEvents = [];
        }
        $this->timeEvents[] = $event;
    }
public function addTimeEvent(TimeEvent $event)
    {
        if (!$this->timeEvents) {
            $this->timeEvents = [];
        }
        $this->timeEvents[] = $event;
    }
public function addTimeEvent ( TimeEvent $ event ) { if ( ! $ this -> timeEvents ) { $ this -> timeEvents = [ ] ; } $ this -> timeEvents [ ] = $ event ; }
Add a single TimeEvent to this span.

Example:
```
$annotation = new Annotation('some message');
$span->addTimeEvent($annotation);
```

@param TimeEvent $event
Add a single TimeEvent to this span .