diff --git a/config/config_test.go b/config/config_test.go index a2eebd1e..b69bfc0a 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -905,7 +905,7 @@ func TestWithRandomNumber(t *testing.T) { ServiceName: "test-random-number", } randomNum := func() uint64 { return 1 } - _, closer, err := cfg.NewTracer(WithRandomNunmber(randomNum)) + _, closer, err := cfg.NewTracer(WithRandomNumber(randomNum)) assert.NoError(t, err) defer closeCloser(t, closer) } diff --git a/config/options.go b/config/options.go index 7fcd2414..a5065072 100644 --- a/config/options.go +++ b/config/options.go @@ -148,8 +148,8 @@ func Extractor(format interface{}, extractor jaeger.Extractor) Option { } } -// WithRandomNunmber set the Tracer random number func -func WithRandomNunmber(f func() uint64) Option { +// WithRandomNumber set the Tracer random number func +func WithRandomNumber(f func() uint64) Option { return func(c *Options) { c.randomNumber = f }