Commit Graph

25 Commits (619e838513b2a47bed74cfe71f46d250175eca42)

Author SHA1 Message Date
Awadabang cc21f5fae2
update: limit logBrief http body size (#3498)
Co-authored-by: 常公征 <changgz@yealink.com>
1 year ago
Kevin Wan 13cdbdc98b
chore: avoid nested WithCodeResponseWriter (#3406) 1 year ago
cong 61e562d0c7
refactor(rest): keep rest log collector context key private (#3407) 1 year ago
chen quan dc260f196a
refactor: simplify the code (#2763)
* refactor: simplify the code

* fix: fix data race

* refactor: simplify the code

* refactor: simplify the code
2 years ago
chen quan 111e626a73
refactor: adjust http request slow log format (#2440) 2 years ago
Kevin Wan d935c83a54
feat: support baggage propagation in httpc (#2375)
* feat: support baggage propagation in httpc

* chore: use go 1.16

* chore: use go 1.16

* chore: use go ^1.16

* chore: remove deprecated
2 years ago
Kevin Wan 69c2bad410
feat: logx with color (#1872)
* feat: logx with color

* chore: update logs

* fix test error

* chore: change colors of http codes

* chore: add comments

* chore: use faith/color instead of ascii code color

* chore: update colors

* chore: update colors

* chore: fix duplicated slowcall text

* chore: remove slowcall colors
3 years ago
Kevin Wan bf2feee5b7
feat: implement console plain output for debug logs (#1456)
* feat: implement console plain output for debug logs

* chore: rename console encoding to plain

* chore: refactor names
3 years ago
Kevin Wan a91c3907a8
feat: rename module from tal-tech to zeromicro (#1413) 3 years ago
Kevin Wan 6f1d27354a
chore: put error message in error.log for verbose mode (#1355) 3 years ago
Kevin Wan 71d40e0c08
Revert "排除客户端中断导致的503错误 (#1343)" (#1351)
This reverts commit 2cdf5e7395.
3 years ago
vic 2cdf5e7395
排除客户端中断导致的503错误 (#1343) 3 years ago
Kevin Wan ebc90720ea
feat: slow threshold customizable in rest (#1189)
* feat: slow threshold customizable in rest

* feat: slow threshold customizable in rest
3 years ago
chenquan 022c100dc9
Add request method in http log (#1120)
* Add request method in http log

* Update log format
3 years ago
Kevin Wan f669e1226c
fix #556 (#938) 3 years ago
Kevin Wan 3c6951577d
make hijack more stable (#565) 4 years ago
Kevin Wan 1a1a6f5239
add http hijack methods (#555) 4 years ago
Kevin Wan 655ae8034c
fix golint issues in rest (#529) 4 years ago
Kevin Wan 5e969cbef0
fix golint issues, else blocks (#457) 4 years ago
Kevin Wan e97e1f10db
simplify code with http.Flusher type conversion (#325)
* simplify code with http.Flusher type conversion

* simplify code with http.Flusher type conversion, better version
4 years ago
jichangyun 0bd2a0656c
The ResponseWriters defined in rest.handler add Flush interface. (#318) 4 years ago
kevin 5e99f2b85d add trace/span in http logs 4 years ago
kevin 80d55dbc02 export httpx.GetRemoteAddr 4 years ago
kevin 0a7e0cce77 update package reference 4 years ago
kevin 0897f60c5d rename ngin to rest 4 years ago