diff options
author | Jorik Schellekens <joriksch@gmail.com> | 2019-07-23 15:46:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-23 15:46:04 +0100 |
commit | 3641784e8c63e1ac0deaa99519d53c0bf2853993 (patch) | |
tree | 9d37fbb50c2bb59e80d7fa285913a1146eb7e48f /synapse/config | |
parent | Replace returnValue with return (#5736) (diff) | |
download | synapse-3641784e8c63e1ac0deaa99519d53c0bf2853993.tar.xz |
Make Jaeger fully configurable (#5694)
* Allow Jaeger to be configured * Update sample config
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/tracer.py | 22 |
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 """ |