Handle zipkin collector creation
This commit is contained in:
parent
83a92596c3
commit
5212b7d3bd
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue