Codebase list golang-github-go-kit-kit / f0d5f8a
fix port assignment (#866) kevinreed8263 authored 4 years ago Peter Bourgon committed 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2525 host, portString, err := net.SplitHostPort(req.URL.Host)
2626 if err == nil {
2727 ext.PeerHostname.Set(span, host)
28 if port, err := strconv.Atoi(portString); err != nil {
28 if port, err := strconv.Atoi(portString); err == nil {
2929 ext.PeerPort.Set(span, uint16(port))
3030 }
3131 } else {