mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 13:14:56 -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
|
@ -32,7 +32,6 @@ from synapse.appservice import ApplicationService
|
|||
from synapse.http import get_request_user_agent
|
||||
from synapse.http.site import SynapseRequest
|
||||
from synapse.logging.opentracing import (
|
||||
SynapseTags,
|
||||
active_span,
|
||||
force_tracing,
|
||||
start_active_span,
|
||||
|
@ -162,12 +161,6 @@ class Auth:
|
|||
parent_span.set_tag(
|
||||
"authenticated_entity", requester.authenticated_entity
|
||||
)
|
||||
# We 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.
|
||||
parent_span.set_tag(
|
||||
SynapseTags.INSTANCE_NAME, self.hs.get_instance_name()
|
||||
)
|
||||
parent_span.set_tag("user_id", requester.user.to_string())
|
||||
if requester.device_id is not None:
|
||||
parent_span.set_tag("device_id", requester.device_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue