diff options
Diffstat (limited to 'osprofiler/initializer.py')
-rw-r--r-- | osprofiler/initializer.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/osprofiler/initializer.py b/osprofiler/initializer.py index 6f66e3b..4befdd6 100644 --- a/osprofiler/initializer.py +++ b/osprofiler/initializer.py @@ -17,7 +17,7 @@ from osprofiler import notifier from osprofiler import web -def init_from_conf(conf, context, project, service, host): +def init_from_conf(conf, context, project, service, host, **kwargs): """Initialize notifier from service configuration :param conf: service configuration @@ -26,6 +26,7 @@ def init_from_conf(conf, context, project, service, host): :param service: service name that will be profiled :param host: hostname or host IP address that the service will be running on. + :param kwargs: other arguments for notifier creation """ connection_str = conf.profiler.connection_string _notifier = notifier.create( @@ -34,6 +35,7 @@ def init_from_conf(conf, context, project, service, host): project=project, service=service, host=host, - conf=conf) + conf=conf, + **kwargs) notifier.set(_notifier) web.enable(conf.profiler.hmac_keys) |