Skip to content

Commit 063d886

Browse files
author
Nick Randall
committed
expose tracing options
1 parent 436ab85 commit 063d886

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dataloader.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,16 @@ func withSilentLogger() Option {
153153
}
154154
}
155155

156-
// withTracer allows tracing of calls to Load and LoadMany
157-
func withTracer(tracer Tracer) Option {
156+
// WithTracer allows tracing of calls to Load and LoadMany
157+
func WithTracer(tracer Tracer) Option {
158158
return func(l *Loader) {
159159
l.tracer = tracer
160160
}
161161
}
162162

163-
// withOpenTracingTracer allows tracing of calls to Load and LoadMany
164-
func withOpenTracingTracer(tracer Tracer) Option {
165-
return withTracer(&OpenTracingTracer{})
163+
// WithOpenTracingTracer allows tracing of calls to Load and LoadMany
164+
func WithOpenTracingTracer(tracer Tracer) Option {
165+
return WithTracer(&OpenTracingTracer{})
166166
}
167167

168168
// NewBatchedLoader constructs a new Loader with given options.

0 commit comments

Comments
 (0)