Skip to content

Commit

Permalink
Add 'conn_id' field to sync_once span
Browse files Browse the repository at this point in the history
This is to make it easier to see which sync requests are for which
connection when debugging.
  • Loading branch information
erikjohnston authored and jmartinesp committed Nov 19, 2024
1 parent 05505a5 commit 22bbe0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/matrix-sdk/src/sliding_sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<UpdateSummary> {
let (request, request_config, position_guard) =
self.generate_sync_request(&mut LazyTransactionId::new()).await?;
Expand Down

0 comments on commit 22bbe0c

Please sign in to comment.