Add debug timing for thread item pagination (#59497)

## What changed

- Log `thread/items/list` request IDs, cursor kinds, page sizes, next-page availability, elapsed time, and success status.
- Log remote-control item-page response preparation and WebSocket write times, along with request and stream IDs, sequence IDs, frame counts, wire bytes, and success, interruption, or write-error outcomes. Collect these transport metrics only when debug logging is enabled.

GitOrigin-RevId: 0f26bef6d6b8cacbd5a5c76c49a5f882669f6598
This commit is contained in:
yiqian-oai
2026-11-04 21:33:28 +00:00
committed by copyberry
parent b260ee5e83
commit dc1cc0a0e8
4 changed files with 85 additions and 8 deletions
+3 -1
View File
@@ -1620,7 +1620,9 @@ impl MessageProcessor {
self.thread_processor.thread_turns_list(params).await
}
ClientRequest::ThreadItemsList { params, .. } => {
self.thread_processor.thread_items_list(params).await
self.thread_processor
.thread_items_list(&request_id, params)
.await
}
ClientRequest::ThreadItemsRead { params, .. } => {
self.thread_processor.thread_items_read(params).await