More tracing spans

This commit is contained in:
Lambda 2024-05-23 21:53:23 +00:00 committed by Charles Hall
parent 2e34241465
commit f35cbfd89e
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
4 changed files with 15 additions and 0 deletions

View file

@ -489,6 +489,7 @@ impl service::users::Data for KeyValueDatabase {
Ok(counts)
}
#[tracing::instrument(skip(self, device_keys))]
fn add_device_keys(
&self,
user_id: &UserId,
@ -510,6 +511,12 @@ impl service::users::Data for KeyValueDatabase {
Ok(())
}
#[tracing::instrument(skip(
self,
master_key,
self_signing_key,
user_signing_key
))]
fn add_cross_signing_keys(
&self,
user_id: &UserId,
@ -724,6 +731,7 @@ impl service::users::Data for KeyValueDatabase {
)
}
#[tracing::instrument(skip(self))]
fn mark_device_key_update(&self, user_id: &UserId) -> Result<()> {
let count = services().globals.next_count()?.to_be_bytes();
for room_id in services()