Skip to content

Instantly share code, notes, and snippets.

View imilano's full-sized avatar
🏠
Working from home

imilano imilano

🏠
Working from home
View GitHub Profile

Update: otplug refer to a go-micro opentracing plugin

I initialize jaeger using NewTracer function. In each service’s main.go , I create a jaeger instance and set it as global tracer.

func NewTracer(serviceName string, logger log.Factory) (opentracing.Tracer, io.Closer) {
	cfg := config.Configuration{
		ServiceName: serviceName,
		RPCMetrics: true,
		Sampler: &config.SamplerConfig{