From 6c70049d2fa6e1b7e7d5da77962105efa4b37ddb Mon Sep 17 00:00:00 2001 From: longXboy Date: Thu, 3 Jun 2021 19:12:12 +0800 Subject: [PATCH] delete trace --- middleware/logging/logging.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/middleware/logging/logging.go b/middleware/logging/logging.go index 02a22a430..83cb99c9a 100644 --- a/middleware/logging/logging.go +++ b/middleware/logging/logging.go @@ -12,8 +12,6 @@ import ( // Server is an server logging middleware. func Server(logger log.Logger) middleware.Middleware { - logger = log.With(logger, "trace_id", log.TraceID(), "span_id", log.SpanID()) - return func(handler middleware.Handler) middleware.Handler { return func(ctx context.Context, req interface{}) (reply interface{}, err error) { reply, err = handler(ctx, req) @@ -32,8 +30,6 @@ func Server(logger log.Logger) middleware.Middleware { // Client is an client logging middleware. func Client(logger log.Logger) middleware.Middleware { - logger = log.With(logger, "trace_id", log.TraceID(), "span_id", log.SpanID()) - return func(handler middleware.Handler) middleware.Handler { return func(ctx context.Context, req interface{}) (reply interface{}, err error) { reply, err = handler(ctx, req)