diff --git a/crates/matrix-sdk/src/sliding_sync/mod.rs b/crates/matrix-sdk/src/sliding_sync/mod.rs index f0891f848..42f0d043c 100644 --- a/crates/matrix-sdk/src/sliding_sync/mod.rs +++ b/crates/matrix-sdk/src/sliding_sync/mod.rs @@ -945,7 +945,7 @@ impl StickyData for SlidingSyncStickyParameters { /// TODO remove this workaround as soon as support of the `limited` flag is /// properly implemented in the open-source proxy: https://github.com/matrix-org/sliding-sync/issues/197 // NOTE: SS proxy workaround. -#[instrument(skip_all)] +#[instrument(skip_all, fields(room_id))] fn compute_limited( local_rooms: &BTreeMap, remote_rooms: &mut BTreeMap, @@ -962,6 +962,8 @@ fn compute_limited( continue; } + Span::current().record("room_id", tracing::field::debug(room_id)); + let remote_events = &remote_room.timeline; if remote_events.is_empty() { trace!("no timeline updates in the response => not limited");