mirror of
				https://github.com/Bryanthelol/namekoplus
				synced 2025-11-01 07:16:35 +08:00 
			
		
		
		
	Compare commits
	
		
			7 Commits
		
	
	
		
			e389125b10
			...
			4e6cc13773
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 4e6cc13773 | |||
| d8ee68bcc6 | |||
| 989eb0f0f4 | |||
| a9adfa5cb1 | |||
| d2025c628e | |||
| 45e8b692f0 | |||
| 857d26d092 | 
| @@ -319,13 +319,13 @@ def metric_config_gen(module, class_name_str): | ||||
|     """ | ||||
|     import sys | ||||
|     from statsd.client.timer import Timer | ||||
|     sys.path.append(os.getcwd())  | ||||
|     sys.path.append('/home/ubuntu/namekoplus-examples') | ||||
|     click.echo(f'sys.path: {sys.path}') | ||||
|  | ||||
|     # Extract information of statsd config from the class of nameko service | ||||
|     dest_dir = module.split('.')[0] | ||||
|     file_name = module.split('.')[-1] | ||||
|     _module = __import__(module) | ||||
|     _module = importlib.import_module(module) | ||||
|     config_list = [] | ||||
|     for class_name in class_name_str.split(','): | ||||
|         members = inspect.getmembers(getattr(getattr(_module, file_name), class_name), predicate=inspect.isfunction) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user