mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 15:56:04 -04:00
Tag federation request spans with the worker name (#15042)
* Systematically include worker name as process info * Changelog * don't bother with inner setdefault
This commit is contained in:
parent
03bccd542b
commit
a5a799722d
3 changed files with 10 additions and 8 deletions
|
@ -466,8 +466,16 @@ def init_tracer(hs: "HomeServer") -> None:
|
|||
STRIP_INSTANCE_NUMBER_SUFFIX_REGEX, "", hs.get_instance_name()
|
||||
)
|
||||
|
||||
jaeger_config = hs.config.tracing.jaeger_config
|
||||
tags = jaeger_config.setdefault("tags", {})
|
||||
|
||||
# tag the Synapse instance name so that it's an easy jumping
|
||||
# off point into the logs. Can also be used to filter for an
|
||||
# instance that is under load.
|
||||
tags[SynapseTags.INSTANCE_NAME] = hs.get_instance_name()
|
||||
|
||||
config = JaegerConfig(
|
||||
config=hs.config.tracing.jaeger_config,
|
||||
config=jaeger_config,
|
||||
service_name=f"{hs.config.server.server_name} {instance_name_by_type}",
|
||||
scope_manager=LogContextScopeManager(),
|
||||
metrics_factory=PrometheusMetricsFactory(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue