Compare commits
No commits in common. "a9adfa5cb1e83bf676ff758101ebb037739a8a9e" and "857d26d092ccbb9cc735f81bff7b943acc372735" have entirely different histories.
a9adfa5cb1
...
857d26d092
|
@ -1,4 +1,3 @@
|
|||
import importlib
|
||||
import inspect
|
||||
import os
|
||||
import shutil
|
||||
|
@ -319,13 +318,10 @@ def metric_config_gen(module, class_name_str):
|
|||
"""
|
||||
from statsd.client.timer import Timer
|
||||
|
||||
import sys
|
||||
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(name='.'+file_name, package=dest_dir)
|
||||
_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