diff --git a/examples/hotrod/pkg/tracing/init.go b/examples/hotrod/pkg/tracing/init.go index 68ab96c6a0c..83444fa4f18 100644 --- a/examples/hotrod/pkg/tracing/init.go +++ b/examples/hotrod/pkg/tracing/init.go @@ -30,6 +30,9 @@ import ( // Init creates a new instance of Jaeger tracer. func Init(serviceName string, metricsFactory metrics.Factory, logger log.Factory) opentracing.Tracer { cfg, err := config.FromEnv() + if err != nil { + logger.Bg().Fatal("cannot parse Jaeger env vars", zap.Error(err)) + } cfg.ServiceName = serviceName cfg.Sampler.Type = "const" cfg.Sampler.Param = 1