Trace/src/Span.php
public function addLink(Link $link)
    {
        if (!$this->links) {
            $this->links = [];
        }
        $this->links[] = $link;
    }
public function addLink(Link $link)
    {
        if (!$this->links) {
            $this->links = [];
        }
        $this->links[] = $link;
    }
public function addLink ( Link $ link ) { if ( ! $ this -> links ) { $ this -> links = [ ] ; } $ this -> links [ ] = $ link ; }
Add a single Link to this span.

Example:
```
$link = new Link('abcd1234', 'abcd2345');
$span->addLink($link);
```

@param Link $link
Add a single Link to this span .