Skip to content

Commit

Permalink
Handle zipkin collector creation
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas authored and traefiker committed Feb 15, 2018
1 parent 83a9259 commit 5212b7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions middlewares/tracing/zipkin/zipkin.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ type Config struct {
// Setup sets up the tracer
func (c *Config) Setup(serviceName string) (opentracing.Tracer, io.Closer, error) {
collector, err := zipkin.NewHTTPCollector(c.HTTPEndpoint)
if err != nil {
return nil, nil, err
}
recorder := zipkin.NewRecorder(collector, c.Debug, "0.0.0.0:0", serviceName)
tracer, err := zipkin.NewTracer(
recorder,
Expand Down

0 comments on commit 5212b7d

Please sign in to comment.