feat tracer
This commit is contained in:
@@ -34,7 +34,7 @@ func (s *Base) LoggingInterceptor(ctx context.Context, req interface{}, info *gr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_, span := otel.Tracer(s.ServiceName).Start(ctx, info.FullMethod)
|
_, span := otel.Tracer("grpc.interceptor.logging").Start(ctx, info.FullMethod)
|
||||||
defer span.End()
|
defer span.End()
|
||||||
|
|
||||||
reqString := fmt.Sprintf("[usn:%v] method: %s, Request: %v", usn, info.FullMethod, req)
|
reqString := fmt.Sprintf("[usn:%v] method: %s, Request: %v", usn, info.FullMethod, req)
|
||||||
|
|||||||
Reference in New Issue
Block a user