coder / coder/code-server

Add debug logging around requests

未關閉
#7,396 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
TypeScript
星號
79.3k
分支
6.8k
平均合併
2 天 6 小時
30 天內合併 PR
41

描述

We should log the start and stop of all requests. Probably a request ID, endpoint, method, and payload for the start log, and then a request ID, status code, response body, and duration for the end log.

And some auth, cookie info, and rate limit info to debug login issues. It would be convenient to see something like "returning a 401 because the cookie did not match the value stored in `password`" or "request has been rate limited" or whatever the case may be.

Additionally, a configuration knob for the rate limit would be useful for debugging (perhaps just a disable toggle).

貢獻指南

開啟貢獻指南

研究方向

該 issue 沒有指出任何檔案、測試或進入點。首先整理請求、驗證、Cookie、速率限制和設定的處理方式,然後定義安全記錄需求,並驗證請求和回應的詳細資訊不會暴露敏感資料。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript
領域
backend-api-design, observability
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
20/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。