summaryrefslogtreecommitdiff
path: root/osprofiler/opts.py
diff options
context:
space:
mode:
Diffstat (limited to 'osprofiler/opts.py')
-rw-r--r--osprofiler/opts.py27
1 files changed, 26 insertions, 1 deletions
diff --git a/osprofiler/opts.py b/osprofiler/opts.py
index 612a6c8..58d5806 100644
--- a/osprofiler/opts.py
+++ b/osprofiler/opts.py
@@ -170,6 +170,30 @@ _PROFILER_OPTS = [
cfg.CONF.register_opts(_PROFILER_OPTS, group=_profiler_opt_group)
+_jaegerprofiler_opt_group = cfg.OptGroup(
+ "profiler_jaeger",
+ title="Jaeger's profiler driver related options")
+
+_service_name_prefix = cfg.StrOpt(
+ "service_name_prefix",
+ help="""
+Set service name prefix to Jaeger service name.
+""")
+
+_process_tags = cfg.DictOpt(
+ "process_tags",
+ default={},
+ help="""
+Set process tracer tags.
+""")
+
+_JAEGER_OPTS = [
+ _service_name_prefix,
+ _process_tags
+]
+
+cfg.CONF.register_opts(_JAEGER_OPTS, group=_jaegerprofiler_opt_group)
+
def set_defaults(conf, enabled=None, trace_sqlalchemy=None, hmac_keys=None,
connection_string=None, es_doc_type=None,
@@ -239,4 +263,5 @@ def disable_web_trace(conf=None):
def list_opts():
- return [(_profiler_opt_group.name, _PROFILER_OPTS)]
+ return [(_profiler_opt_group.name, _PROFILER_OPTS),
+ (_jaegerprofiler_opt_group, _JAEGER_OPTS)]