mirror of
https://github.com/go-kratos/kratos.git
synced 2026-05-22 10:15:24 +02:00
kratos/typs(trace): the world spelling corrects (#1116)
This commit is contained in:
@@ -17,14 +17,14 @@ type options struct {
|
||||
Propagator propagation.TextMapPropagator
|
||||
}
|
||||
|
||||
// WithPropagator with tracer proagator.
|
||||
// WithPropagator with tracer propagator.
|
||||
func WithPropagator(propagator propagation.TextMapPropagator) Option {
|
||||
return func(opts *options) {
|
||||
opts.Propagator = propagator
|
||||
}
|
||||
}
|
||||
|
||||
// WithTracerProvider with tracer privoder.
|
||||
// WithTracerProvider with tracer provider.
|
||||
func WithTracerProvider(provider trace.TracerProvider) Option {
|
||||
return func(opts *options) {
|
||||
opts.TracerProvider = provider
|
||||
|
||||
Reference in New Issue
Block a user