Codebase list golang-github-go-kit-kit / 43624e9
Reinstate appdash after fix Peter Bourgon 7 years ago
2 changed file(s) with 15 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
1111 "github.com/lightstep/lightstep-tracer-go"
1212 stdopentracing "github.com/opentracing/opentracing-go"
1313 zipkin "github.com/openzipkin/zipkin-go-opentracing"
14 //appdashot "github.com/sourcegraph/appdash/opentracing"
14 appdashot "github.com/sourcegraph/appdash/opentracing"
1515 "golang.org/x/net/context"
1616 "google.golang.org/grpc"
17 //"sourcegraph.com/sourcegraph/appdash"
17 "sourcegraph.com/sourcegraph/appdash"
1818
1919 "github.com/go-kit/kit/examples/addsvc"
2020 grpcclient "github.com/go-kit/kit/examples/addsvc/client/grpc"
4040 thriftBufferSize = flag.Int("thrift.buffer.size", 0, "0 for unbuffered")
4141 thriftFramed = flag.Bool("thrift.framed", false, "true to enable framing")
4242 zipkinAddr = flag.String("zipkin.addr", "", "Enable Zipkin tracing via a Kafka Collector host:port")
43 //appdashAddr = flag.String("appdash.addr", "", "Enable Appdash tracing via an Appdash server host:port")
44 lightstepToken = flag.String("lightstep.token", "", "Enable LightStep tracing via a LightStep access token")
45 method = flag.String("method", "sum", "sum, concat")
43 appdashAddr = flag.String("appdash.addr", "", "Enable Appdash tracing via an Appdash server host:port")
44 lightstepToken = flag.String("lightstep.token", "", "Enable LightStep tracing via a LightStep access token")
45 method = flag.String("method", "sum", "sum, concat")
4646 )
4747 flag.Parse()
4848
7171 fmt.Fprintf(os.Stderr, "%v\n", err)
7272 os.Exit(1)
7373 }
74 //} else if *appdashAddr != "" {
75 // tracer = appdashot.NewTracer(appdash.NewRemoteCollector(*appdashAddr))
74 } else if *appdashAddr != "" {
75 tracer = appdashot.NewTracer(appdash.NewRemoteCollector(*appdashAddr))
7676 } else if *lightstepToken != "" {
7777 tracer = lightstep.NewTracer(lightstep.Options{
7878 AccessToken: *lightstepToken,
1616 stdopentracing "github.com/opentracing/opentracing-go"
1717 zipkin "github.com/openzipkin/zipkin-go-opentracing"
1818 stdprometheus "github.com/prometheus/client_golang/prometheus"
19 //appdashot "github.com/sourcegraph/appdash/opentracing"
19 appdashot "github.com/sourcegraph/appdash/opentracing"
2020 "golang.org/x/net/context"
2121 "google.golang.org/grpc"
22 //"sourcegraph.com/sourcegraph/appdash"
22 "sourcegraph.com/sourcegraph/appdash"
2323
2424 "github.com/go-kit/kit/endpoint"
2525 "github.com/go-kit/kit/examples/addsvc"
4141 thriftBufferSize = flag.Int("thrift.buffer.size", 0, "0 for unbuffered")
4242 thriftFramed = flag.Bool("thrift.framed", false, "true to enable framing")
4343 zipkinAddr = flag.String("zipkin.addr", "", "Enable Zipkin tracing via a Kafka server host:port")
44 //appdashAddr = flag.String("appdash.addr", "", "Enable Appdash tracing via an Appdash server host:port")
45 lightstepToken = flag.String("lightstep.token", "", "Enable LightStep tracing via a LightStep access token")
44 appdashAddr = flag.String("appdash.addr", "", "Enable Appdash tracing via an Appdash server host:port")
45 lightstepToken = flag.String("lightstep.token", "", "Enable LightStep tracing via a LightStep access token")
4646 )
4747 flag.Parse()
4848
102102 logger.Log("err", err)
103103 os.Exit(1)
104104 }
105 //} else if *appdashAddr != "" {
106 // logger := log.NewContext(logger).With("tracer", "Appdash")
107 // logger.Log("addr", *appdashAddr)
108 // tracer = appdashot.NewTracer(appdash.NewRemoteCollector(*appdashAddr))
105 } else if *appdashAddr != "" {
106 logger := log.NewContext(logger).With("tracer", "Appdash")
107 logger.Log("addr", *appdashAddr)
108 tracer = appdashot.NewTracer(appdash.NewRemoteCollector(*appdashAddr))
109109 } else if *lightstepToken != "" {
110110 logger := log.NewContext(logger).With("tracer", "LightStep")
111111 logger.Log() // probably don't want to print out the token :)