Compare commits
2 Commits
4e6cc13773
...
e389125b10
Author | SHA1 | Date |
---|---|---|
BryantHe | e389125b10 | |
BryantHe | ba7cc886e7 |
|
@ -319,13 +319,13 @@ def metric_config_gen(module, class_name_str):
|
|||
"""
|
||||
import sys
|
||||
from statsd.client.timer import Timer
|
||||
sys.path.append('/home/ubuntu/namekoplus-examples')
|
||||
sys.path.append(os.getcwd())
|
||||
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 = importlib.import_module(module)
|
||||
_module = __import__(module)
|
||||
config_list = []
|
||||
for class_name in class_name_str.split(','):
|
||||
members = inspect.getmembers(getattr(getattr(_module, file_name), class_name), predicate=inspect.isfunction)
|
||||
|
|
Loading…
Reference in New Issue