parent
39e65e8729
commit
06d72b93da
|
@ -361,7 +361,7 @@ func WithDiscovery(d discovery.Discovery, opts ...DiscoverOpt) Option {
|
||||||
// WithEventTracer provides a tracer for the pubsub system
|
// WithEventTracer provides a tracer for the pubsub system
|
||||||
func WithEventTracer(tracer EventTracer) Option {
|
func WithEventTracer(tracer EventTracer) Option {
|
||||||
return func(p *PubSub) error {
|
return func(p *PubSub) error {
|
||||||
if tracer != nil {
|
if p.tracer != nil {
|
||||||
p.tracer.tracer = tracer
|
p.tracer.tracer = tracer
|
||||||
} else {
|
} else {
|
||||||
p.tracer = &pubsubTracer{tracer: tracer, pid: p.host.ID(), msgID: p.msgID}
|
p.tracer = &pubsubTracer{tracer: tracer, pid: p.host.ID(), msgID: p.msgID}
|
||||||
|
|
Loading…
Reference in New Issue