From ef8e3a7effa92c8f9606211eadc77b2070cc55b7 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 19 Nov 2024 10:30:31 +0000 Subject: [PATCH] Add 'conn_id' field to `sync_once` span This is to make it easier to see which sync requests are for which connection when debugging. --- crates/matrix-sdk/src/sliding_sync/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk/src/sliding_sync/mod.rs b/crates/matrix-sdk/src/sliding_sync/mod.rs index 322a7563f00..36f4f896a1e 100644 --- a/crates/matrix-sdk/src/sliding_sync/mod.rs +++ b/crates/matrix-sdk/src/sliding_sync/mod.rs @@ -703,7 +703,7 @@ impl SlidingSync { || !self.inner.lists.read().await.is_empty() } - #[instrument(skip_all, fields(pos))] + #[instrument(skip_all, fields(pos, conn_id = self.inner.id))] async fn sync_once(&self) -> Result { let (request, request_config, position_guard) = self.generate_sync_request(&mut LazyTransactionId::new()).await?;