fix port assignment (#866)
kevinreed8263 authored 4 years ago
Peter Bourgon committed 4 years ago
25 | 25 |
host, portString, err := net.SplitHostPort(req.URL.Host)
|
26 | 26 |
if err == nil {
|
27 | 27 |
ext.PeerHostname.Set(span, host)
|
28 | |
if port, err := strconv.Atoi(portString); err != nil {
|
|
28 |
if port, err := strconv.Atoi(portString); err == nil {
|
29 | 29 |
ext.PeerPort.Set(span, uint16(port))
|
30 | 30 |
}
|
31 | 31 |
} else {
|