Add user_id to v3 sync span; add span for sync token association.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
730920b571
commit
8c8985e8f2
3 changed files with 5 additions and 0 deletions
|
|
@ -115,6 +115,7 @@ type PresenceUpdates = HashMap<OwnedUserId, PresenceEventContent>;
|
|||
level = "debug",
|
||||
skip_all,
|
||||
fields(
|
||||
user_id = %body.sender_user(),
|
||||
since = %body.body.since.as_deref().unwrap_or_default(),
|
||||
)
|
||||
)]
|
||||
|
|
|
|||
|
|
@ -103,13 +103,16 @@ impl crate::Service for Service {
|
|||
|
||||
impl Service {
|
||||
#[inline]
|
||||
#[tracing::instrument(level = "trace", skip(self))]
|
||||
pub async fn wait_pending(&self) -> Result<u64> { self.db.wait_pending().await }
|
||||
|
||||
#[inline]
|
||||
#[tracing::instrument(level = "trace", skip(self))]
|
||||
pub async fn wait_count(&self, count: &u64) -> Result<u64> { self.db.wait_count(count).await }
|
||||
|
||||
#[inline]
|
||||
#[must_use]
|
||||
#[tracing::instrument(level = "debug", skip(self))]
|
||||
pub fn next_count(&self) -> data::Permit { self.db.next_count() }
|
||||
|
||||
#[inline]
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ pub async fn last_notification_read(&self, user_id: &UserId, room_id: &RoomId) -
|
|||
}
|
||||
|
||||
#[implement(Service)]
|
||||
#[tracing::instrument(level = "trace", skip(self))]
|
||||
pub async fn associate_token_shortstatehash(
|
||||
&self,
|
||||
room_id: &RoomId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue