move out tracers

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-09-10 00:06:29 +03:00
parent f1fde75567
commit caec730248
12 changed files with 125 additions and 356 deletions

View File

@@ -9,9 +9,9 @@ import (
"github.com/unistack-org/micro/v3/auth"
"github.com/unistack-org/micro/v3/broker"
"github.com/unistack-org/micro/v3/codec"
"github.com/unistack-org/micro/v3/debug/trace"
"github.com/unistack-org/micro/v3/logger"
"github.com/unistack-org/micro/v3/registry"
"github.com/unistack-org/micro/v3/tracer"
"github.com/unistack-org/micro/v3/transport"
)
@@ -19,7 +19,7 @@ type Options struct {
Codecs map[string]codec.NewCodec
Broker broker.Broker
Registry registry.Registry
Tracer trace.Tracer
Tracer tracer.Tracer
Auth auth.Auth
Logger logger.Logger
Transport transport.Transport
@@ -149,7 +149,7 @@ func Registry(r registry.Registry) Option {
}
// Tracer mechanism for distributed tracking
func Tracer(t trace.Tracer) Option {
func Tracer(t tracer.Tracer) Option {
return func(o *Options) {
o.Tracer = t
}