mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-01 09:34:23 -04:00
Add missing types to opentracing. (#13345)
After this change `synapse.logging` is fully typed.
This commit is contained in:
parent
190f49d8ab
commit
50122754c8
14 changed files with 83 additions and 45 deletions
|
@ -118,8 +118,8 @@ class DeviceWorkerHandler:
|
|||
ips = await self.store.get_last_client_ip_by_device(user_id, device_id)
|
||||
_update_device_from_client_ips(device, ips)
|
||||
|
||||
set_tag("device", device)
|
||||
set_tag("ips", ips)
|
||||
set_tag("device", str(device))
|
||||
set_tag("ips", str(ips))
|
||||
|
||||
return device
|
||||
|
||||
|
@ -170,7 +170,7 @@ class DeviceWorkerHandler:
|
|||
"""
|
||||
|
||||
set_tag("user_id", user_id)
|
||||
set_tag("from_token", from_token)
|
||||
set_tag("from_token", str(from_token))
|
||||
now_room_key = self.store.get_room_max_token()
|
||||
|
||||
room_ids = await self.store.get_rooms_for_user(user_id)
|
||||
|
@ -795,7 +795,7 @@ class DeviceListUpdater:
|
|||
"""
|
||||
|
||||
set_tag("origin", origin)
|
||||
set_tag("edu_content", edu_content)
|
||||
set_tag("edu_content", str(edu_content))
|
||||
user_id = edu_content.pop("user_id")
|
||||
device_id = edu_content.pop("device_id")
|
||||
stream_id = str(edu_content.pop("stream_id")) # They may come as ints
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue