mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-05 21:57:42 +00:00
Sliding sync requests computed in Rust now report spans under the request's Python span, one per step the handler calls: `sliding_sync.load_connection_state`, `sliding_sync.interested_rooms`, `sliding_sync.room_entries` (with the room count), and `sliding_sync.finish_request`. Inside the room entries, a `sliding_sync.room` per room is tagged `room_id` and its `outcome` (`entry`, `fallback` or `error`, marked with the `error` tag), with that room's reads under it. `sliding_sync.encode` covers encoding the rooms, which runs on a threadpool thread whose logcontext carries the request's Python span (`encode_json_response`). A trial test makes a sliding sync request over two rooms with tracing on and checks that each step is under the servlet's Python span, that each room is under `sliding_sync.room_entries`, and that the rooms' reads are under them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W4zxygfJC93SsugxskhoJG