updated import path for zipkin tracer
Bas van Beek
7 years ago
8 | 8 |
"strings"
|
9 | 9 |
"time"
|
10 | 10 |
|
11 | |
zipkin "github.com/basvanbeek/zipkin-go-opentracing"
|
12 | 11 |
"github.com/lightstep/lightstep-tracer-go"
|
13 | 12 |
"github.com/opentracing/opentracing-go"
|
|
13 |
zipkin "github.com/openzipkin/zipkin-go-opentracing"
|
14 | 14 |
appdashot "github.com/sourcegraph/appdash/opentracing"
|
15 | 15 |
"golang.org/x/net/context"
|
16 | 16 |
"sourcegraph.com/sourcegraph/appdash"
|
14 | 14 |
"time"
|
15 | 15 |
|
16 | 16 |
"github.com/apache/thrift/lib/go/thrift"
|
17 | |
zipkin "github.com/basvanbeek/zipkin-go-opentracing"
|
18 | 17 |
"github.com/lightstep/lightstep-tracer-go"
|
19 | 18 |
"github.com/opentracing/opentracing-go"
|
|
19 |
zipkin "github.com/openzipkin/zipkin-go-opentracing"
|
20 | 20 |
stdprometheus "github.com/prometheus/client_golang/prometheus"
|
21 | 21 |
appdashot "github.com/sourcegraph/appdash/opentracing"
|
22 | 22 |
"golang.org/x/net/context"
|
26 | 26 |
host, portString, err := net.SplitHostPort(req.URL.Host)
|
27 | 27 |
if err == nil {
|
28 | 28 |
ext.PeerHostname.Set(span, host)
|
29 | |
if port, _ := strconv.Atoi(portString); err != nil {
|
|
29 |
if port, err := strconv.Atoi(portString); err != nil {
|
30 | 30 |
ext.PeerPort.Set(span, uint16(port))
|
31 | 31 |
}
|
32 | 32 |
} else {
|