summary refs log tree commit diff
path: root/synapse/config/tracer.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-07-30 10:12:13 +0100
committerErik Johnston <erik@matrix.org>2019-07-30 10:12:13 +0100
commit65fe31786d6a8c008084161a9445367edbe38f51 (patch)
tree19bb742970e152ea2004bede0198a06034bd3865 /synapse/config/tracer.py
parentMerge branch 'release-v1.2.0' of github.com:matrix-org/synapse into matrix-or... (diff)
parentMerge pull request #5746 from matrix-org/erikj/test_bg_update_currnet_state (diff)
downloadsynapse-65fe31786d6a8c008084161a9445367edbe38f51.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/config/tracer.py')
-rw-r--r--synapse/config/tracer.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/synapse/config/tracer.py b/synapse/config/tracer.py

index 4479454415..95e7ccb3a3 100644 --- a/synapse/config/tracer.py +++ b/synapse/config/tracer.py
@@ -23,6 +23,12 @@ class TracerConfig(Config): opentracing_config = {} self.opentracer_enabled = opentracing_config.get("enabled", False) + + self.jaeger_config = opentracing_config.get( + "jaeger_config", + {"sampler": {"type": "const", "param": 1}, "logging": False}, + ) + if not self.opentracer_enabled: return @@ -56,4 +62,20 @@ class TracerConfig(Config): # #homeserver_whitelist: # - ".*" + + # Jaeger can be configured to sample traces at different rates. + # All configuration options provided by Jaeger can be set here. + # Jaeger's configuration mostly related to trace sampling which + # is documented here: + # https://www.jaegertracing.io/docs/1.13/sampling/. + # + #jaeger_config: + # sampler: + # type: const + # param: 1 + + # Logging whether spans were started and reported + # + # logging: + # false """