Skip to content

v0.3.0

Choose a tag to compare

@KevinZhao KevinZhao released this 26 Mar 12:01
· 15 commits to main since this release

What's New

DEBUG 诊断日志模式

设置 DEBUG=1 环境变量启用,覆盖完整请求生命周期:

  • 请求进入: method、path、content-length、所有入站请求头
  • 转发构建: 完整 target URL、body 大小
  • 出站请求: 转发给 upstream 的所有请求头(auth 值自动脱敏)
  • 响应返回: status code、耗时(ms)、响应头
  • 错误详情: 4xx/5xx 始终打印 upstream 返回的 error body(最多 4KB)
  • Streaming: 传输总字节数、耗时、读写错误

改进

  • 所有 upstream 错误日志现在包含耗时信息
  • 4xx/5xx 错误响应的 body 内容会被记录并正确转发给客户端

Full Changelog: v0.2.0...v0.3.0