Kevin Wan
6be37ad533
chore: optimize coding style and add unit tests ( #3917 )
2024-02-17 15:50:07 +08:00
chen quan
28cb2c5804
feat: support sse ignore timeout ( #2041 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2024-02-17 07:06:45 +00:00
Kevin Wan
9c17499757
optimize: shedding algorithm performance ( #3908 )
2024-02-15 20:22:22 +08:00
Kevin Wan
18d66a795d
chore: add more tests ( #3578 )
2023-09-20 23:52:10 +08:00
Kevin Wan
4211672bfd
chore: add more tests ( #3577 )
2023-09-20 00:01:26 +08:00
Awadabang
cc21f5fae2
update: limit logBrief http body size ( #3498 )
...
Co-authored-by: 常公征 <changgz@yealink.com>
2023-09-16 11:58:21 +00:00
Kevin Wan
13cdbdc98b
chore: avoid nested WithCodeResponseWriter ( #3406 )
2023-07-11 15:59:43 +00:00
cong
61e562d0c7
refactor(rest): keep rest log collector context key private ( #3407 )
2023-07-10 01:52:26 +00:00
Kevin Wan
31b9ba19a2
chore: refactor httpx.TimeoutHandler ( #3400 )
2023-07-09 07:04:59 +00:00
扶桑花间
916cea858f
1. Fix w. (http. Flusher). Flush() error ( #3388 )
2023-07-05 15:27:15 +00:00
me-cs
0217044900
update:Use the Milliseconds method of duration to get the number of milliseconds ( #3285 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2023-05-26 14:32:46 +00:00
SleeplessBot
a93c24ce84
Add method label for prometheus middleware metrics ( #3226 )
...
Co-authored-by: 蓝益尤 <lan.yiyou@intellif.com>
2023-05-08 12:59:20 +00:00
Kevin Wan
9f42eda9ff
fix: timeout handler not implementing http.Flusher ( #3225 )
2023-05-08 18:07:02 +08:00
Kevin Wan
8ffe4c01d1
chore: use logx.Must instead of log.Fatal ( #3189 )
2023-04-29 23:46:04 +08:00
Kevin Wan
14caf5c799
chore: simplify tests with logtest ( #3184 )
2023-04-29 20:36:29 +08:00
Kevin Wan
3da740b7fc
chore: remove unnecessary code ( #3161 )
2023-04-23 22:58:22 +08:00
chen quan
ce4eb6ed61
fix: fixed #2945 ( #2953 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2023-04-23 14:22:03 +00:00
cong
22fad4bb9c
feat(trace): add trace test helpers ( #3108 )
2023-04-08 14:52:25 +00:00
Kevin Wan
8d0cceb80c
chore: add more tests ( #3084 )
2023-03-31 22:33:43 +08:00
heyehang
e06abf4f6f
fixbug:superfluous response.WriteHeader ( #3083 )
2023-03-31 13:05:29 +00:00
Kevin Wan
211b9498ef
chore: add more tests ( #3016 )
2023-03-11 22:22:39 +08:00
yangjinheng
dbc8f9faca
timeout writer add hijack
2023-03-04 11:50:04 +00:00
yangjinheng
96998ae570
Update timeouthandler.go
2023-03-04 11:50:04 +00:00
Kevin Wan
ae87114282
chore: change interface{} to any ( #2818 )
...
* chore: change interface{} to any
* chore: update goctl version to 1.5.0
* chore: update goctl deps
2023-01-24 16:32:02 +08:00
Kevin Wan
4d7fa08b0b
feat: support **struct in mapping ( #2784 )
...
* feat: support **struct in mapping
* chore: fix test failure
2023-01-12 20:45:32 +08:00
Kevin Wan
367afb544c
feat: support ptr of ptr of ... in mapping ( #2779 )
...
* feat: support ptr of ptr of ... in mapping
* feat: support ptr of ptr of time.Duration in mapping
* feat: support ptr of ptr of json.Number in mapping
* chore: improve setting in mapping
* feat: support ptr of ptr encoding.TextUnmarshaler in mapping
* chore: add more tests
* fix: string ptr
* chore: update tests
2023-01-12 15:56:51 +08:00
cong
43b8c7f641
chore(trace): improve rest tracinghandler ( #2783 )
2023-01-12 12:50:57 +08:00
cong
f9619328f2
refactor(rest): use static config for trace ignore paths. ( #2773 )
2023-01-12 09:40:18 +08:00
Kevin Wan
ade6f9ee46
feat: add middlewares config for rest ( #2765 )
...
* feat: add middlewares config for rest
* chore: disable logs in tests
* chore: enable verbose in tests
2023-01-08 16:41:53 +08:00
chen quan
dc260f196a
refactor: simplify the code ( #2763 )
...
* refactor: simplify the code
* fix: fix data race
* refactor: simplify the code
* refactor: simplify the code
2023-01-07 13:32:56 +08:00
chen quan
fc9b3ffdc1
refactor: use opentelemetry's standard api to track http status code ( #2760 )
2023-01-06 23:27:54 +08:00
Kevin Wan
83f88d177f
chore: improve codecov ( #2752 )
2023-01-04 13:42:20 +08:00
xiang
641ebf1667
feat: trace http.status_code ( #2708 )
...
* feat: trace http.status_code
* feat: implements http.Flusher & http.Hijacker for traceResponseWriter
* test: delete notTracingSpans after test
* feat: trace http.status_code
* feat: implements http.Flusher & http.Hijacker for traceResponseWriter
* test: delete notTracingSpans after test
* refactor: update trace handler span message
* fix: code conflict
2023-01-04 10:21:57 +08:00
heyehang
a644ec7edd
feature : responses whit context ( #2637 )
2022-12-03 18:48:02 +08:00
chen quan
97a8b3ade5
fix(rest): fix issues#2628 ( #2629 )
2022-11-23 22:50:08 +08:00
王哈哈
dac3600b53
Modify comment syntax error ( #2572 )
2022-11-04 21:55:17 +08:00
Kevin Wan
9cadab2684
chore: refactor ( #2545 )
...
* chore: refactor
* chore: refactor
2022-10-22 22:52:40 +08:00
chen quan
7fe2492009
feat(trace): support for disabling tracing of specified spanName
( #2363 )
2022-10-22 22:14:12 +08:00
Kevin Wan
05a5de7c6d
chore: fix lint errors ( #2520 )
2022-10-17 06:30:58 +08:00
chen quan
111e626a73
refactor: adjust http request slow log format ( #2440 )
2022-09-23 21:20:38 +08:00
dawn_zhou
ae7f1aabdd
feat: mysql and redis metric support ( #2355 )
...
* feat: mysql and redis metric support
* feat: mysql and redis metric support
* feat: mysql and redis metric support
Co-authored-by: dawn.zhou <dawn.zhou@yijinin.com>
2022-09-17 19:35:30 +08:00
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
2022-09-10 15:18:52 +08:00
maizige
cfda972d50
fix:trace graceful stop,pre loss trace ( #2358 )
2022-09-07 10:33:01 +08:00
Kevin Wan
d9620bb072
chore: remove unused packages ( #2312 )
2022-08-28 14:20:03 +08:00
Kevin Wan
6d2b9fd904
chore: improve codecov ( #1878 )
2022-05-08 13:17:48 +08:00
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
2022-05-07 23:22:39 +08:00
Kevin Wan
f7a60cdc24
fix: remove deprecated dependencies ( #1837 )
...
* fix: remove deprecated dependencies
* backup
* fix test error
2022-04-27 21:34:54 +08:00
Kevin Wan
2cdff97934
feat: use mongodb official driver instead of mgo ( #1782 )
...
* wip: backup
* wip: backup
* wip: backup
* backup
* backup
* backup
* add more tests
* fix wrong dependency
* fix lint errors
* remove test due to data race
* add tests
* fix test error
* add mon.Model
* add mon.Model unmarshal
* add monc
* add more tests for monc
* add more tests for monc
* add docs for mon and monc packages
* fix doc errors
* chhore: add comment
* chore: fix test bug
* chore: refine tests
* chore: remove primitive.NewObjectID in test code
* chore: rename test files for typo
2022-04-19 14:03:04 +08:00
Kevin Wan
92b450eb11
fix: ignore timeout on websocket ( #1802 )
2022-04-18 20:14:46 +08:00
Kevin Wan
ab01442d46
add more tests ( #1763 )
...
* feat: add goctl docker build scripts
* chore: add more tests
2022-04-06 16:09:06 +08:00